浏览代码

BUG: Fix CTEST_USE_LAUNCHERS in dashboard scripts

Since CTest does not currently load configuration settings computed at
CMake Configure time while running dashboard scripts, the ctest_build
command must honor the CTEST_USE_LAUNCHERS option directly.
Brad King 16 年之前
父节点
当前提交
a0359d3c15
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Source/CTest/cmCTestBuildCommand.cxx

+ 6 - 0
Source/CTest/cmCTestBuildCommand.cxx

@@ -133,6 +133,12 @@ cmCTestGenericHandler* cmCTestBuildCommand::InitializeHandler()
       }
     }
 
+  if(const char* useLaunchers =
+     this->Makefile->GetDefinition("CTEST_USE_LAUNCHERS"))
+    {
+    this->CTest->SetCTestConfiguration("UseLaunchers", useLaunchers);
+    }
+
   return handler;
 }