From 6479f4db32aca1b6ceff985199d0da2904af347e Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 3 Aug 2005 11:56:00 -0400 Subject: ENH: Add support for the new gcc that uses files with extension .gcda --- Source/CTest/cmCTestCoverageHandler.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx index 9deb0fe..e542a4d 100644 --- a/Source/CTest/cmCTestCoverageHandler.cxx +++ b/Source/CTest/cmCTestCoverageHandler.cxx @@ -186,7 +186,6 @@ int cmCTestCoverageHandler::ProcessHandler() std::string asfGlob = sourceDir + "/*"; std::string abfGlob = binaryDir + "/*"; - std::string daGlob = binaryDir + "/*.da"; // Style 1 @@ -222,8 +221,13 @@ int cmCTestCoverageHandler::ProcessHandler() cmGlob gl; gl.RecurseOn(); + std::string daGlob = binaryDir + "/*.da"; gl.FindFiles(daGlob); std::vector files = gl.GetFiles(); + daGlob = binaryDir + "/*.gcda"; + gl.FindFiles(daGlob); + std::vector& moreFiles = gl.GetFiles(); + files.insert(files.end(), moreFiles.begin(), moreFiles.end()); std::vector::iterator it; if ( files.size() == 0 ) -- cgit v0.12