CTest: Teach launcher to ignore empty/no-op make commands

This commit is contained in:
Chuck Atkins authored and Brad King committed 2011-01-10 10:17:13 -05:00
1 parent 8e6ad8ce72
commit 6228abed9b
1 file changed
+7
+7
View File
@@ -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);