From 58573cebfc86275154ee0b94e3d02580ccc5a74b Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 23 Dec 2021 14:00:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=20=D0=B0=D0=BD=D0=B0=D0=BB=D0=B8?= =?UTF-8?q?=D0=B7=D0=B0=20=D0=BF=D0=BE=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=B8=D1=81=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D1=8B=20?= =?UTF-8?q?=D1=81=D0=B8=D1=81=D1=82=D0=B5=D0=BC=D0=BD=D1=8B=D0=B5=20=D0=B8?= =?UTF-8?q?=20=D1=81=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=BD=D1=8B=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MyxCMake/modules/MyxCMakeCodeCoverage.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MyxCMake/modules/MyxCMakeCodeCoverage.cmake b/MyxCMake/modules/MyxCMakeCodeCoverage.cmake index bfa730e..4a2b150 100644 --- a/MyxCMake/modules/MyxCMakeCodeCoverage.cmake +++ b/MyxCMake/modules/MyxCMakeCodeCoverage.cmake @@ -17,8 +17,10 @@ function(myx_cmake_code_coverage target) add_custom_target( ${target}-coverage WORKING_DIRECTORY ${CMAKE_BINARY_DIR} - COMMAND ${LCOV_EXE} --test-name ${target} --output "${target}.lcov" - --capture --directory ${CMAKE_BINARY_DIR}) + COMMAND ${LCOV_EXE} --test-name ${target} --output "${target}.lcov" --capture + --exclude "/usr/\\\*" + --exclude "${CMAKE_BINARY_DIR}/\\\*" + --directory ${CMAKE_BINARY_DIR}) add_dependencies(${target}-coverage ${target}) if(GENHTML_EXE)