Fix logic in cmVSSetupAPIHelper::IsVS2017Installed to work correctly on repeat calls. Closes: #16549
@@ -76,6 +76,8 @@ bool cmVSSetupAPIHelper::IsVS2017Installed()
bool ret = false;
if (chosenInstanceInfo.VSInstallLocation.compare(L"") == 0) {
ret = EnumerateAndChooseVSInstance();
+ } else {
+ ret = true;
}
return ret;