CMake does not find Visual C++ compiler

前端 未结 27 2320
小鲜肉
小鲜肉 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:32

    I had a related problem: the Visual C++ generators were not even on the list when running cmake --help.

    I ran where cmake in console and found that cygwin also provides its own cmake.exe file, which was being used. Changing the order of directories in PATH fixed the problem.

提交回复
热议问题