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
Hi,

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


[1] https://gitlab.kitware.com/cmake/cmake/commit/9ffb35386fb923a5959eec482bfa131aa3feaa18
[2] https://cmake.org/cmake/help/v3.11/generator/Visual Studio 15 2017.html
[3] https://github.com/Microsoft/vswhere

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

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

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
--
Mateusz Loskot
http://mateusz.loskot.net