Explorar el Código

ERR: Fix coverage on gcc 2.95

Andy Cedilnik hace 22 años
padre
commit
6e5eddb917
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      Source/cmCTest.cxx

+ 3 - 2
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;