From cba1ad560392cd29dc9c677148ac4b8e51acfa75 Mon Sep 17 00:00:00 2001 From: David Cole Date: Mon, 25 Feb 2008 10:17:17 -0500 Subject: [PATCH] BUG: Exclude try_compile sources and kwsys files from CMake coverage results. --- CTestCustom.cmake.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in index af83f1a02..68f0dedd0 100644 --- a/CTestCustom.cmake.in +++ b/CTestCustom.cmake.in @@ -39,3 +39,14 @@ IF(NOT "@CMAKE_GENERATOR@" MATCHES "KDevelop") "Kdevelop" ) ENDIF (NOT "@CMAKE_GENERATOR@" MATCHES "KDevelop") + +SET(CTEST_CUSTOM_COVERAGE_EXCLUDE + ${CTEST_CUSTOM_COVERAGE_EXCLUDE} + + # Exclude kwsys files from coverage results. They are reported + # (with better coverage results) on kwsys dashboards... + "/Source/(cm|kw)sys/" + + # Exclude try_compile sources from coverage results: + "/CMakeFiles/CMakeTmp/" + )