mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-09 23:59:53 -05:00
VS: Fix detection of VS 2017 installation with WindowsStore
Fix logic in cmVSSetupAPIHelper::IsVS2017Installed to work correctly on repeat calls. Closes: #16549
This commit is contained in:
@@ -76,6 +76,8 @@ bool cmVSSetupAPIHelper::IsVS2017Installed()
|
||||
bool ret = false;
|
||||
if (chosenInstanceInfo.VSInstallLocation.compare(L"") == 0) {
|
||||
ret = EnumerateAndChooseVSInstance();
|
||||
} else {
|
||||
ret = true;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user