CMake does not find Visual C++ compiler

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

    I had a similar problem with the Visual Studio 2017 project generated through CMake. Some of the packages were missing while installing Visual Studio in Desktop development with C++. See snapshot:

    Visual Studio 2017 Packages:

    Also, upgrade CMake to the latest version.

提交回复
热议问题