summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-20 13:52:41 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-04-20 13:52:41 (GMT)
commit484958b781dcfaf12a29a5c916277fc7d4b01fbd (patch)
treeda97227c99f7f5520b3732f55b5043c4f8f5a14c /Modules
parent0d4c75ecfbabc55b5705f21982a84ab5fa6b7e18 (diff)
parent5de122dfa4a1f60dae736d9f29e588cfd5ce0416 (diff)
downloadCMake-484958b781dcfaf12a29a5c916277fc7d4b01fbd.zip
CMake-484958b781dcfaf12a29a5c916277fc7d4b01fbd.tar.gz
CMake-484958b781dcfaf12a29a5c916277fc7d4b01fbd.tar.bz2
Merge topic 'coverage_collect_delete'
5de122df CTestCoverageCollectGCOV: improve DELETE option
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CTestCoverageCollectGCOV.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/CTestCoverageCollectGCOV.cmake b/Modules/CTestCoverageCollectGCOV.cmake
index 31c4fef..a04d340 100644
--- a/Modules/CTestCoverageCollectGCOV.cmake
+++ b/Modules/CTestCoverageCollectGCOV.cmake
@@ -287,10 +287,14 @@ ${uncovered_files_for_tar}
WORKING_DIRECTORY ${binary_dir})
if (GCOV_DELETE)
- string(REPLACE "\n" ";" gcov_files "${gcov_files}")
- foreach(gcov_file ${gcov_files})
+ foreach(gcov_file ${unfiltered_gcov_files})
file(REMOVE ${binary_dir}/${gcov_file})
endforeach()
+ file(REMOVE ${coverage_dir}/coverage_file_list.txt)
+ file(REMOVE ${coverage_dir}/data.json)
+ if (EXISTS ${binary_dir}/uncovered)
+ file(REMOVE ${binary_dir}/uncovered)
+ endif()
endif()
endfunction()