summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-10 16:08:25 (GMT)
committerBrad King <brad.king@kitware.com>2003-02-10 16:08:25 (GMT)
commitc9cec2add5c9cd15ac3e90af3a09ec13cc208c92 (patch)
tree7e8ee1237172527644c4f22bde1d39a48066005b
parent88a8486a496113cda1134c9d0426dc0495d8ae66 (diff)
downloadCMake-c9cec2add5c9cd15ac3e90af3a09ec13cc208c92.zip
CMake-c9cec2add5c9cd15ac3e90af3a09ec13cc208c92.tar.gz
CMake-c9cec2add5c9cd15ac3e90af3a09ec13cc208c92.tar.bz2
ENH: Running "make test" can now have ARGS specified on the command line. These ARGS are passed to ctest.
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index 8e50d1c..d04798c 100644
--- a/Source/cmLocalUnixMakefileGenerator.cxx
+++ b/Source/cmLocalUnixMakefileGenerator.cxx
@@ -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());
}
}