summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-12-15 23:44:33 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-12-15 23:44:33 (GMT)
commit6e5eddb917bb73510e76d8aa0b06306a658990dd (patch)
treeb700ddac9988b4fa4f92a5aa22ebf55a70338d04
parentd9658c15bc3682128618402b909ee9e618c3db07 (diff)
downloadCMake-6e5eddb917bb73510e76d8aa0b06306a658990dd.zip
CMake-6e5eddb917bb73510e76d8aa0b06306a658990dd.tar.gz
CMake-6e5eddb917bb73510e76d8aa0b06306a658990dd.tar.bz2
ERR: Fix coverage on gcc 2.95
-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;