summaryrefslogtreecommitdiffstats
path: root/Source/cmVSSetupHelper.h
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/cmVSSetupHelper.h
parent5a283b79e5fe1739142cc513a9a701855849b2f8 (diff)
downloadCMake-d8ed309d0529d9a7b28da561c3640290a8041b68.zip
CMake-d8ed309d0529d9a7b28da561c3640290a8041b68.tar.gz
CMake-d8ed309d0529d9a7b28da561c3640290a8041b68.tar.bz2
VS: Parameterize cmVSSetupAPIHelper instances with VS version
Diffstat (limited to 'Source/cmVSSetupHelper.h')
-rw-r--r--Source/cmVSSetupHelper.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmVSSetupHelper.h b/Source/cmVSSetupHelper.h
index b9cca45..4748a7a 100644
--- a/Source/cmVSSetupHelper.h
+++ b/Source/cmVSSetupHelper.h
@@ -120,12 +120,12 @@ struct VSInstanceInfo
class cmVSSetupAPIHelper
{
public:
- cmVSSetupAPIHelper();
+ cmVSSetupAPIHelper(unsigned int version);
~cmVSSetupAPIHelper();
bool SetVSInstance(std::string const& vsInstallLocation);
- bool IsVS2017Installed();
+ bool IsVSInstalled();
bool GetVSInstanceInfo(std::string& vsInstallLocation);
bool GetVCToolsetVersion(std::string& vsToolsetVersion);
bool IsWin10SDKInstalled();
@@ -140,6 +140,8 @@ private:
int ChooseVSInstance(const std::vector<VSInstanceInfo>& vecVSInstances);
bool EnumerateAndChooseVSInstance();
+ unsigned int Version;
+
// COM ptrs to query about VS instances
SmartCOMPtr<ISetupConfiguration> setupConfig;
SmartCOMPtr<ISetupConfiguration2> setupConfig2;