Browse Source

VS: Fix detection of VS 2017 installation with WindowsStore

Fix logic in cmVSSetupAPIHelper::IsVS2017Installed to work correctly on
repeat calls.

Closes: #16549
Brad King 8 years ago
parent
commit
577f721fb7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/cmVSSetupHelper.cxx

+ 2 - 0
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;