ソースを参照

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);