summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakeHostSystemInformationCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-09 14:40:53 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-11 15:37:38 (GMT)
commitd8ed309d0529d9a7b28da561c3640290a8041b68 (patch)
tree04d6dccc332623769b0b6ccf3bb0c1f0da73e08e /Source/cmCMakeHostSystemInformationCommand.cxx
parent5a283b79e5fe1739142cc513a9a701855849b2f8 (diff)
downloadCMake-d8ed309d0529d9a7b28da561c3640290a8041b68.zip
CMake-d8ed309d0529d9a7b28da561c3640290a8041b68.tar.gz
CMake-d8ed309d0529d9a7b28da561c3640290a8041b68.tar.bz2
VS: Parameterize cmVSSetupAPIHelper instances with VS version
Diffstat (limited to 'Source/cmCMakeHostSystemInformationCommand.cxx')
-rw-r--r--Source/cmCMakeHostSystemInformationCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCMakeHostSystemInformationCommand.cxx b/Source/cmCMakeHostSystemInformationCommand.cxx
index 8822942..a2423ac 100644
--- a/Source/cmCMakeHostSystemInformationCommand.cxx
+++ b/Source/cmCMakeHostSystemInformationCommand.cxx
@@ -141,7 +141,7 @@ bool cmCMakeHostSystemInformationCommand::GetValue(
}
// Otherwise, find a VS 15 instance ourselves.
- cmVSSetupAPIHelper vsSetupAPIHelper;
+ cmVSSetupAPIHelper vsSetupAPIHelper(15);
if (vsSetupAPIHelper.GetVSInstanceInfo(value)) {
cmSystemTools::ConvertToUnixSlashes(value);
}