diff options
author | Brad King <brad.king@kitware.com> | 2017-01-12 16:25:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-12 16:29:35 (GMT) |
commit | 577f721fb70bbf6c29c40d5f10d4319370ccb1f8 (patch) | |
tree | c5c05776db85b15a9325995db79192fffe253010 /Source/cmVSSetupHelper.cxx | |
parent | 3a97a3713a498c9a89a1733131196f7fcd03552c (diff) | |
download | CMake-577f721fb70bbf6c29c40d5f10d4319370ccb1f8.zip CMake-577f721fb70bbf6c29c40d5f10d4319370ccb1f8.tar.gz CMake-577f721fb70bbf6c29c40d5f10d4319370ccb1f8.tar.bz2 |
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.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmVSSetupHelper.cxx b/Source/cmVSSetupHelper.cxx index d675a2c..2091b5c 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; |