summaryrefslogtreecommitdiff
path: root/Source/cmVSSetupHelper.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-10-16 11:50:18 -0400
committerBrad King <brad.king@kitware.com>2017-10-16 11:57:15 -0400
commitf566586e1ce2905615fb778266165fd862e3a028 (patch)
tree88a783a7c3c60b74d7b70a616d7676729a98e9ef /Source/cmVSSetupHelper.h
parentc6bb704ea1e2a2c91605e390900d69bd51269fc9 (diff)
downloadcmake-f566586e1ce2905615fb778266165fd862e3a028.tar.gz
VS: Detect compiler component in VS 2017 instances more reliably
The `Microsoft.VisualStudio.Component.VC.Tools.x86.x64` component is not the only way a VS instance may provide the `cl` compiler tool. For example, VS 2017 Express Edition does not install that component. Instead search for the tools directly on disk within an instance. Suggested-by: Rich Chiodo <rchiodo@microsoft.com> Fixes: #17349
Diffstat (limited to 'Source/cmVSSetupHelper.h')
-rw-r--r--Source/cmVSSetupHelper.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmVSSetupHelper.h b/Source/cmVSSetupHelper.h
index 5c6c28563c..74a7ec04a3 100644
--- a/Source/cmVSSetupHelper.h
+++ b/Source/cmVSSetupHelper.h
@@ -136,8 +136,7 @@ private:
bool GetVSInstanceInfo(SmartCOMPtr<ISetupInstance2> instance2,
VSInstanceInfo& vsInstanceInfo);
bool CheckInstalledComponent(SmartCOMPtr<ISetupPackageReference> package,
- bool& bVCToolset, bool& bWin10SDK,
- bool& bWin81SDK);
+ bool& bWin10SDK, bool& bWin81SDK);
int ChooseVSInstance(const std::vector<VSInstanceInfo>& vecVSInstances);
bool EnumerateAndChooseVSInstance();