问题描述:Clion CMake文件加载报错,错误信息描述主要如下,网上搜了半天,加了VS的一些环境变量,然后又按照错误提示信息添加了clion的cmake.exe的环境变量,均无效。
Determining if the C compiler works failed with the following output:
MT: command "CMAKE_MT-NOTFOUND /nologo /manifest CMakeFiles\cmTC_b3659.dir/intermediate.manifest /out:CMakeFiles\cmTC_b3659.dir/embed.manifest /notify_update" failed (exit code 0x0) with the following output:
系统找不到指定的文件。NMAKE : fatal error U1077: “D:\CLion\bin\cmake\win\bin\cmake.exe”: 返回代码“0xffffffff”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"”: 返回代码“0x2”
Stop.
解决方案:网上搜资料时,看到一篇https://www.it1352.com/479309.html ,看到一个mt.exe可执行文件,错误提示信息中也有"MT:command"日志。用everything在电脑上搜了下,发现C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x64路径下存在,将该路径加至环境变量,问题解决。