summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmCTest.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 573e6ea..124e8be 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -1262,8 +1262,9 @@ int cmCTest::CoverageDirectory()
for ( cc = 0; cc < files.size(); cc ++ )
{
- std::string command = coverageCommand + " -o \"" + files[cc] + "\"";
- command += " -l \"" + files[cc] + "\"";
+ std::string command = coverageCommand + " -o \"" +
+ cmSystemTools::GetFilenamePath(files[cc]) +
+ "\" -l \"" + files[cc] + "\"";
std::string output;
int retVal = 0;
//std::cout << "Run gcov on " << files[cc] << std::flush;