27
CMake找不到Visual C ++编译器
安装Visual Studio 2015并在以前的项目上运行CMake之后,CMake错误指出无法找到C编译器。 The C compiler identification is unknown The CXX compiler identification is unknown CMake Error at CMakeLists.txt:4 (PROJECT): No CMAKE_C_COMPILER could be found. CMake Error at CMakeLists.txt:4 (PROJECT): No CMAKE_CXX_COMPILER could be found. 我去cl.exeVisual Studio文件夹中搜索,C:\Program Files\Microsoft Visual Studio 14.0但找不到它。 如何设置CMake以在Windows和Visual Studio 2015上运行?