summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioVersionedGenerator.cxx
diff options
context:
space:
mode:
authorJustin Goshi <jgoshi@microsoft.com>2020-06-02 19:46:07 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-03 12:58:29 (GMT)
commit8a7ad923a89030e63e60fb333169abd258732615 (patch)
treeb8c62fad79ab772ab0715aef561abcf18ac8799e /Source/cmGlobalVisualStudioVersionedGenerator.cxx
parent35a192788f3a32c56fb5f9b66e097d698e4d03da (diff)
downloadCMake-8a7ad923a89030e63e60fb333169abd258732615.zip
CMake-8a7ad923a89030e63e60fb333169abd258732615.tar.gz
CMake-8a7ad923a89030e63e60fb333169abd258732615.tar.bz2
VS: Extract instance version from VS Installer
Diffstat (limited to 'Source/cmGlobalVisualStudioVersionedGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioVersionedGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioVersionedGenerator.cxx b/Source/cmGlobalVisualStudioVersionedGenerator.cxx
index 13ae32a..d44433b 100644
--- a/Source/cmGlobalVisualStudioVersionedGenerator.cxx
+++ b/Source/cmGlobalVisualStudioVersionedGenerator.cxx
@@ -366,6 +366,12 @@ bool cmGlobalVisualStudioVersionedGenerator::GetVSInstance(
return vsSetupAPIHelper.GetVSInstanceInfo(dir);
}
+bool cmGlobalVisualStudioVersionedGenerator::GetVSInstanceVersion(
+ unsigned long long& vsInstanceVersion) const
+{
+ return vsSetupAPIHelper.GetVSInstanceVersion(vsInstanceVersion);
+}
+
bool cmGlobalVisualStudioVersionedGenerator::IsDefaultToolset(
const std::string& version) const
{