From 6228abed9b5856729274e680cbe64952245769d0 Mon Sep 17 00:00:00 2001 From: Chuck Atkins Date: Thu, 6 Jan 2011 13:00:18 -0500 Subject: CTest: Teach launcher to ignore empty/no-op make commands --- Source/CTest/cmCTestLaunch.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- cgit v0.12