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.
我在Visual Studio文件夹中查找cl.exe
,即C:\Program Files\Microsoft Visual Studio 14.0
,但未能找到。
如何在Windows上使用Visual Studio 2015设置CMake工具?
PATH
中查找所需的程序,因此如果未更新,则无法找到编译器。 - Some programmer dudeHKLM\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot10
解决了它。 - Henry Fung