Browse Source

Merge topic 'ctest-launch-empty-rule'

6228abe CTest: Teach launcher to ignore empty/no-op make commands
Brad King 15 năm trước cách đây
mục cha
commit
3ef8929ee6
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  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);