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:
Brad King
2017-01-12 11:25:14 -05:00
parent 3a97a3713a
commit 577f721fb7
+2
View File
@@ -76,6 +76,8 @@ bool cmVSSetupAPIHelper::IsVS2017Installed()
bool ret = false;
if (chosenInstanceInfo.VSInstallLocation.compare(L"") == 0) {
ret = EnumerateAndChooseVSInstance();
} else {
ret = true;
}
return ret;