From c0406f011f37ac5e8fff79b3c6bc2f998355086e Mon Sep 17 00:00:00 2001 From: Ricardo Abreu <ricardo.abreu@canonical.com> Date: Tue, 19 Nov 2024 23:25:57 +0000 Subject: [PATCH] [cmake] Fix exclusion of build files from coverage --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 033f9db493..7201915913 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -295,7 +295,7 @@ if(cmake_build_type_lower MATCHES "coverage") '/usr/*' ${CMAKE_SOURCE_DIR}'/3rd-party/*' ${CMAKE_SOURCE_DIR}'/tests/*' - ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}'/*' --output-file coverage.cleaned COMMAND ${CMAKE_COMMAND} -E remove coverage.info COMMAND ${GENHTML} -o coverage coverage.cleaned