summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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());
}
}