Open the “Visual Studio Installer”, pick “Modify” and make sure it includes “Desktop Development with C++” . This is probably missing, so install it. Don’t forget to reboot. If it’s still not working, open the “Individual Components” tab in the installer and make sure “Visual C++ tools for CMake” is checked.