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 committed 2017-01-12 11:29:35 -05:00
1 parent 3a97a3713a
commit 577f721fb7
1 file changed
+2
+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;