CMake: Visual Studio 15 2017 could not find any instance of Visual Studio

前端 未结 5 1619
死守一世寂寞
死守一世寂寞 2020-12-28 11:20

When I am trying to install CMake I get the error:

Visual Studio 15 2017 could not find any instance of Visual Studio.

I am using Windows 7

5条回答
  •  自闭症患者
    2020-12-28 12:21

    I ran into the same error and performed the following steps to resolve the issue:

    1. Open Visual Studio
    2. Go to Tools -> Get Tools and Features
    3. In the "Workloads" tab enable "Desktop development with C++"
    4. Click Modify at the bottom right

    These steps resulted in the "Visual C++ tools for CMake" feature being installed, but the other optional C++ features included in this workload may also helpful for what you are trying to do.

    After the Visual Studio updater finishes installing try re-running the command. You may need to open a new command window.

提交回复
热议问题