From c9cec2add5c9cd15ac3e90af3a09ec13cc208c92 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 10 Feb 2003 11:08:25 -0500 Subject: ENH: Running "make test" can now have ARGS specified on the command line. These ARGS are passed to ctest. --- Source/cmLocalUnixMakefileGenerator.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); } } -- cgit v0.12