cmake 建VS.sln报错

CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/CMakeTestCCompiler.cmake:52 (message):

  The C compiler


    "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/amd64/cl.exe"


  is not able to compile a simple test program.


解决方法是:

通过VS2012 x86 Native Tools Command Prompt 用 VS自己的CMD

然后在CMD上执行 cmake-gui.exe 就没有这个错了

扫描二维码关注公众号,回复: 4403770 查看本文章

猜你喜欢

转载自blog.csdn.net/wzw88486969/article/details/79495117