diff options
author | Brad King <brad.king@kitware.com> | 2019-01-09 14:40:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-11 15:37:38 (GMT) |
commit | d8ed309d0529d9a7b28da561c3640290a8041b68 (patch) | |
tree | 04d6dccc332623769b0b6ccf3bb0c1f0da73e08e /Source/cmake.cxx | |
parent | 5a283b79e5fe1739142cc513a9a701855849b2f8 (diff) | |
download | CMake-d8ed309d0529d9a7b28da561c3640290a8041b68.zip CMake-d8ed309d0529d9a7b28da561c3640290a8041b68.tar.gz CMake-d8ed309d0529d9a7b28da561c3640290a8041b68.tar.bz2 |
VS: Parameterize cmVSSetupAPIHelper instances with VS version
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index e1bae34..195956b 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1538,8 +1538,7 @@ void cmake::CreateDefaultGlobalGenerator() "\\Setup\\VC;ProductDir", // ";InstallDir" // }; - cmVSSetupAPIHelper vsSetupAPIHelper; - if (vsSetupAPIHelper.IsVS2017Installed()) { + if (cmVSSetupAPIHelper(15).IsVSInstalled()) { found = "Visual Studio 15 2017"; } else { for (VSVersionedGenerator const* g = cm::cbegin(vsGenerators); |