Merge topic 'fix-11717-gcov-same-file-name'

6e02a3b CTest: Use the gcov --preserve-paths flag (#11717)
This commit is contained in:
Brad King 2011-02-22 14:32:11 -05:00 committed by CMake Topic Stage
commit 01b65de3f9
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@ int cmCTestCoverageHandler::HandleGCovCoverage(
// Call gcov to get coverage data for this *.gcda file:
//
std::string fileDir = cmSystemTools::GetFilenamePath(it->c_str());
std::string command = "\"" + gcovCommand + "\" -l -o \"" + fileDir
std::string command = "\"" + gcovCommand + "\" -l -p -o \"" + fileDir
+ "\" \"" + *it + "\"";
cmCTestLog(this->CTest, HANDLER_VERBOSE_OUTPUT, command.c_str()