[CMake] CMAKE_GENERATOR_INSTANCE with absolute path to Visual Studio instance
Mateusz Loskot
mateusz at loskot.net
Fri Mar 9 04:22:59 EST 2018
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
More information about the CMake
mailing list