summaryrefslogtreecommitdiff
path: root/Source/cmVSSetupHelper.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-12 11:25:14 -0500
committerBrad King <brad.king@kitware.com>2017-01-12 11:29:35 -0500
commit577f721fb70bbf6c29c40d5f10d4319370ccb1f8 (patch)
treec5c05776db85b15a9325995db79192fffe253010 /Source/cmVSSetupHelper.cxx
parent3a97a3713a498c9a89a1733131196f7fcd03552c (diff)
downloadcmake-577f721fb70bbf6c29c40d5f10d4319370ccb1f8.tar.gz
VS: Fix detection of VS 2017 installation with WindowsStore
Fix logic in cmVSSetupAPIHelper::IsVS2017Installed to work correctly on repeat calls. Closes: #16549
Diffstat (limited to 'Source/cmVSSetupHelper.cxx')
-rw-r--r--Source/cmVSSetupHelper.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmVSSetupHelper.cxx b/Source/cmVSSetupHelper.cxx
index d675a2c4e0..2091b5cd68 100644
--- a/Source/cmVSSetupHelper.cxx
+++ b/Source/cmVSSetupHelper.cxx
@@ -76,6 +76,8 @@ bool cmVSSetupAPIHelper::IsVS2017Installed()
bool ret = false;
if (chosenInstanceInfo.VSInstallLocation.compare(L"") == 0) {
ret = EnumerateAndChooseVSInstance();
+ } else {
+ ret = true;
}
return ret;