Unable to use CMake with Visual Studio 2015 C++ Compiler when Visual Studio 2017 C++ Compiler is installed too!
Like in the title issue information, I am unable to use CMake with Visual Studio 2015 C++ Compiler when Visual Studio 2017 C++ Compiler is installed too on Windows 10 64 bits v1809...! The command I used is: cmake .. -G "Visual Studio 14 Win64" . I tested with versions 3.11, 3.12 and 3.13 of CMake Software!
The steps of installation are:
- Install Visual Studio 2015 C++ Compiler.
- Install Visual Studio 2017 C++ Compiler.
- Install CMake.
- Use the command: cmake .. -G "Visual Studio 14 Win64", in the VS2015 x64 Native Tools Command Prompt!
The message error for CMake v3.12 is:
C:\Users\daniel\Desktop\testando\Build>cmake .. -G "Visual Studio 14 Win64"
-- Selecting Windows SDK version 10.0.17134.0 to target Windows 10.0.17763.
-- 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!
See also "C:/Users/daniel/Desktop/testando/Build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/daniel/Desktop/testando/Build/CMakeFiles/CMakeError.log".
The files CMakeOutput.log and CMakeError.log were attached in this issue!
Furthermore, when I try to execute CMake 3.13 with this configuration, CMake stops running suddenly, with an unexpected error!
Edited by Brad King