最佳答案
在安装 VisualStudio2015并在以前的项目上运行 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.
我在 VisualStudio 文件夹 C:\Program Files\Microsoft Visual Studio 14.0
中搜索了 cl.exe
,但是找不到它。
如何设置 CMake 以在 Windows 上使用 VisualStudio2015?