ENH: Running "make test" can now have ARGS specified on the command line. These ARGS are passed to ctest.

This commit is contained in:
Brad King 2003-02-10 11:08:25 -05:00
parent 88a8486a49
commit c9cec2add5
1 changed files with 4 additions and 1 deletions

View File

@ -2304,11 +2304,14 @@ void cmLocalUnixMakefileGenerator::OutputMakeRules(std::ostream& fout)
}
if (cmSystemTools::FileExists(ctest.c_str()))
{
fout << "ARGS=\n";
std::string cmd = this->ConvertToOutputForExisting(ctest.c_str());
cmd += " $(ARGS)";
this->OutputMakeRule(fout,
"tests",
"test",
"",
this->ConvertToOutputForExisting(ctest.c_str()).c_str());
cmd.c_str());
}
}