瀏覽代碼

Merge topic 'vs-instance'

e801d2b243 VS: Make CMAKE_GENERATOR_INSTANCE usable without VS Installer

Acked-by: Kitware Robot <[email protected]>
Merge-request: !9794
Brad King 1 年之前
父節點
當前提交
a53e8e4e81
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Source/cmVSSetupHelper.cxx

+ 2 - 1
Source/cmVSSetupHelper.cxx

@@ -450,7 +450,8 @@ bool cmVSSetupAPIHelper::EnumerateAndChooseVSInstance()
 
   // Enumerate VS instances with either COM interface or Vswhere
   if (!EnumerateVSInstancesWithCOM(vecVSInstancesAll) &&
-      !EnumerateVSInstancesWithVswhere(vecVSInstancesAll)) {
+      !EnumerateVSInstancesWithVswhere(vecVSInstancesAll) &&
+      this->SpecifiedVSInstallLocation.empty()) {
     return false;
   }