CMake does not find Visual C++ compiler

前端 未结 27 2348
小鲜肉
小鲜肉 2020-11-29 18:51

After installing Visual Studio 2015 and running CMake on a previous project, CMake errors stating that it could not find the C compiler.

The C compiler ident         


        
27条回答
  •  爱一瞬间的悲伤
    2020-11-29 19:22

    I looked in CMakeError.log file and found an error about cannot run 'rc.exe'

    I searched and found this answer to copy RC.Exe and RcDll.Dll from the Microsoft SDKs bin to the VC bin, and then CMake worked.


    Edit: The top answer to another question suggests that it's a PATH issue, so it could be enough to ensure the Microsoft SDK bin is in your PATH.

提交回复
热议问题