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

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.

Leave a Comment