diff options
author | Brad King <brad.king@kitware.com> | 2021-10-21 16:17:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-29 15:52:58 (GMT) |
commit | 195d47e2139171cbae18a7164daac1f59be54ebe (patch) | |
tree | bc5958112b1a0998f87258c57fb8bbb1e06a64b6 /Source/cmVSSetupHelper.h | |
parent | ec8d37b3b1ca10535e219b37cf4889d59b1dfedb (diff) | |
download | CMake-195d47e2139171cbae18a7164daac1f59be54ebe.zip CMake-195d47e2139171cbae18a7164daac1f59be54ebe.tar.gz CMake-195d47e2139171cbae18a7164daac1f59be54ebe.tar.bz2 |
VS: Allow CMAKE_GENERATOR_INSTANCE to specify portable instance
Previously the `CMAKE_GENERATOR_INSTANCE` value was used only to filter
the instances reported by the Visual Studio Installer tool. If the
specified install location is not known to the VS Installer, but the
user provided a `version=` field, check for the installation directly
on disk.
Fixes: #21639, #22197
Diffstat (limited to 'Source/cmVSSetupHelper.h')
-rw-r--r-- | Source/cmVSSetupHelper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmVSSetupHelper.h b/Source/cmVSSetupHelper.h index d7e82d0..44c883b 100644 --- a/Source/cmVSSetupHelper.h +++ b/Source/cmVSSetupHelper.h @@ -117,6 +117,7 @@ private: bool& bWin10SDK, bool& bWin81SDK); int ChooseVSInstance(const std::vector<VSInstanceInfo>& vecVSInstances); bool EnumerateAndChooseVSInstance(); + bool LoadSpecifiedVSInstanceFromDisk(); unsigned int Version; |