CMake looking for Visual Studio 2017 while Community 2019 is installed

https://attnam.com/topics/CMake-looking-for-Visual-Studio-2017-while-Community-2019-is-installed

The Cathedral of Attnam > Trouble Shooting and Bugs

#1 Apr 9, 2020, 7:04 am Hide

SSUPII

After importing the project, reinstalling CMake, Visual C++ and installing the necessary tools specified in INSTALL is still get this error. (See attachment)
Error		CMake Error at D:\Progetti\ivan-058\CMakeLists.txt:2 (project):
  Generator

    Visual Studio 15 2017

  could not find any instance of Visual Studio.
Is the project supposed to be worked on Visual Studio 2017 only? The INSTALL file states that a newer version can be used.
#2 Apr 9, 2020, 9:36 am Hide

TheMasterGear

Cmake has been working for me after I changed the version in the CMakeSettings.json to "generator": "Visual Studio 16 2019"
#3 Apr 10, 2020, 1:07 pm Hide

SSUPII

TheMasterGear wrote
Cmake has been working for me after I changed the version in the CMakeSettings.json to "generator": "Visual Studio 16 2019"

Yes, this one the problem. I have 0 experience with CMake, thanks!
#4 Apr 10, 2020, 1:54 pm Hide

TheMasterGear

SSUPII wrote
Yes, this one the problem. I have 0 experience with CMake, thanks!

No problem! Gald to see more interest in Ivan's development.
#5 Apr 11, 2020, 6:59 am Hide

fejoa

Thanks TMG. It seems most people are getting set up with the latest Visual Studio. I'll switch the default config to VS 2019 when I next get a chance.