CMake错误位于C:/ Program Files / JetBrains / CLion 2019.2.4 / bin / cmake / win / share / cmake-3.15 / Modules / CMakeTestCCompiler.cmake:60(消息): C编译器
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.24.28314/bin/Hostx86/x86/cl.exe"
无法编译简单的测试程序。
它失败,显示以下输出:
Change Dir: C:/Users/Connor/CLionProjects/untitled6/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command(s):nmake /nologo cmTC_5b714\fast && "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_5b714.dir\build.make /nologo -L CMakeFiles\cmTC_5b714.dir\build
Building C object CMakeFiles/cmTC_5b714.dir/testCCompiler.c.obj
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1424~1.283\bin\Hostx86\x86\cl.exe @C:\Users\Connor\AppData\Local\Temp\nm6251.tmp
testCCompiler.c
Linking C executable cmTC_5b714.exe
"C:\Program Files\JetBrains\CLion 2019.2.4\bin\cmake\win\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_5b714.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1424~1.283\bin\Hostx86\x86\link.exe /nologo @CMakeFiles\cmTC_5b714.dir\objects1.rsp @C:\Users\Connor\AppData\Local\Temp\nm639A.tmp
RC Pass 1: command "rc /fo CMakeFiles\cmTC_5b714.dir/manifest.res CMakeFiles\cmTC_5b714.dir/manifest.rc" failed (exit code 0) with the following output:
The system cannot find the file specifiedNMAKE : fatal error U1077: '"C:\Program Files\JetBrains\CLion 2019.2.4\bin\cmake\win\bin\cmake.exe"' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.
CMake将无法正确生成此项目。