So, I installed Visual Studio 2017 yesterday. I also installed CMake 3.7.2, which supports VS 2017.
My VS installation with the Game development with C++ + workflow Game development with C++ several other components:

I also added CMake stuff (but I donβt think I even needed it), since I use CMake as a standalone tool for creating VS-solutions) and MSBuild (I had msbuild.exe before adding this component - so I'm not sure what exactly does this additional component do).
With VS 2015, I was able to just run cmake . from the normal command line to solve.
With VS 2017, the workflow is changing - I read this post from Microsoft .
So, I tried the following:
- I opened
Developer Command Prompt for VS 2017 , and from it I launched cmake . -G "NMake Makefiles" cmake . -G "NMake Makefiles" . Then do cmake --build . correctly compiled everything. When I tried the following at the prompt: cmake . -G "Visual Studio 15 2017 Win64" cmake . -G "Visual Studio 15 2017 Win64" to get the solution to be created, I got the following errors:
-- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:3 (project): No CMAKE_C_COMPILER could be found. CMake Error at CMakeLists.txt:3 (project): No CMAKE_CXX_COMPILER could be found. -- Configuring incomplete, errors occurred!
I also tried to configure the environment using vswhere.exe and run vcvarsall.bat as follows:
"C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Community \ VC \ Auxiliary \ Build \ vcvarsall.bat" amd64
and again, I could only generate NMake files, not a solution.
So how can I get a solution?
And why does cl.exe tell Version 19.10.25017 when it is in VC\Tools\MSVC\14.10.25017\bin ?
c ++ visual-c ++ visual-studio cmake visual-studio-2017
onqtam Mar 09 '17 at 16:51 2017-03-09 16:51
source share