No CMAKE_C_COMPILER could be found. No CMAKE_CXX_COMPILER could be found.

I’m left with the impression that when the user PATH contains all of those items previously mentioned then Visual Studio projects do not work correctly regardless if it is a CMake or Visual Studio template project. Maybe something about the PATH breaks the MSBuild command line tools in Visual Studio 2017.