CMAKE_GENERATOR_INSTANCE with absolute path to Visual Studio instance

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

CMAKE_GENERATOR_INSTANCE with absolute path to Visual Studio instance

Mateusz Loskot

I've just learned that CMake 3.11 solves the issue of selecting particular
Visual Studio 2017 instance via CMAKE_GENERATOR_INSTANCE.
This is good news and thank you for this improvement.

I, however, am not entirely clear what the docs [2] mean by

"The CMAKE_GENERATOR_INSTANCE variable may be set
as a cache entry containing the absolute path to a Visual Studio instance."

Is this supposed to be set with one of installationPath values as by vswhere [3]

C:\> vswhere -all -prerelease -property installationPath
C:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional

[2] Studio 15 2017.html

Best regards,
Mateusz Loskot,

Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe:
Mateusz Loskot