瀏覽代碼

Merge topic 'ctest-launch-empty-rule'

6228abe CTest: Teach launcher to ignore empty/no-op make commands
Brad King 15 年之前
父節點
當前提交
3ef8929ee6
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      Source/CTest/cmCTestLaunch.cxx

+ 7 - 0
Source/CTest/cmCTestLaunch.cxx

@@ -220,6 +220,13 @@ void cmCTestLaunch::ComputeFileNames()
 //----------------------------------------------------------------------------
 void cmCTestLaunch::RunChild()
 {
+  // Ignore noopt make rules
+  if(this->RealArgs.empty() || this->RealArgs[0] == ":")
+    {
+    this->ExitCode = 0;
+    return;
+    }
+
   // Prepare to run the real command.
   cmsysProcess* cp = this->Process;
   cmsysProcess_SetCommand(cp, this->RealArgV);