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

前端 未结 5 1621
死守一世寂寞
死守一世寂寞 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:20

    In my case, I installed Visual Studio, selecting the workloads and modules that I wanted, but I ignored the request to reboot, assuming that shutting down the computer at the end of the day and restarting it the following day would suffice. I was wrong.

    The following day I tried a cmake build and got the "could not find any instance of Visual Studio" error. After several attempts to resolve, I re-ran the installer, made no changes to the configuration, and clicked Modify. This time I let it reboot the computer. The reboot took a long time. After which my cmake build worked.

提交回复
热议问题