summaryrefslogtreecommitdiffstats
path: root/Source/cmVSSetupHelper.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-21 16:17:37 (GMT)
committerBrad King <brad.king@kitware.com>2021-10-29 15:52:58 (GMT)
commit195d47e2139171cbae18a7164daac1f59be54ebe (patch)
treebc5958112b1a0998f87258c57fb8bbb1e06a64b6 /Source/cmVSSetupHelper.h
parentec8d37b3b1ca10535e219b37cf4889d59b1dfedb (diff)
downloadCMake-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.h1
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;