summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestLaunch.cxx
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2011-01-06 18:00:18 (GMT)
committerBrad King <brad.king@kitware.com>2011-01-10 15:17:13 (GMT)
commit6228abed9b5856729274e680cbe64952245769d0 (patch)
treeab7c1bfa06397b942622b65e6bb5990c508acf69 /Source/CTest/cmCTestLaunch.cxx
parent8e6ad8ce72d9f00a98b6dc4fbe66037c1f1372de (diff)
downloadCMake-6228abed9b5856729274e680cbe64952245769d0.zip
CMake-6228abed9b5856729274e680cbe64952245769d0.tar.gz
CMake-6228abed9b5856729274e680cbe64952245769d0.tar.bz2
CTest: Teach launcher to ignore empty/no-op make commands
Diffstat (limited to 'Source/CTest/cmCTestLaunch.cxx')
-rw-r--r--Source/CTest/cmCTestLaunch.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestLaunch.cxx b/Source/CTest/cmCTestLaunch.cxx
index 8e305b7..9831d02 100644
--- a/Source/CTest/cmCTestLaunch.cxx
+++ b/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);