From a697bda9c5e56732cb33ee06f0d8440dd658ebc8 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Sat, 14 Dec 2019 20:20:55 -0500 Subject: [PATCH] Use full paths in COVERAGE_LCOV_EXCLUDES examples --- cmake/Modules/CodeCoverage.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/Modules/CodeCoverage.cmake b/cmake/Modules/CodeCoverage.cmake index f497700b..155235cd 100644 --- a/cmake/Modules/CodeCoverage.cmake +++ b/cmake/Modules/CodeCoverage.cmake @@ -55,9 +55,10 @@ # 3.a (OPTIONAL) Set appropriate optimization flags, e.g. -O0, -O1 or -Og # # 4. If you need to exclude additional directories from the report, specify them -# using the COVERAGE_LCOV_EXCLUDES variable before calling SETUP_TARGET_FOR_COVERAGE_LCOV. +# using full paths in the COVERAGE_LCOV_EXCLUDES variable before calling +# setup_target_for_coverage_lcov(). # Example: -# set(COVERAGE_LCOV_EXCLUDES 'dir1/*' 'dir2/*') +# set(COVERAGE_LCOV_EXCLUDES '${PROJECT_SOURCE_DIR}/dir1/*' '/path/to/my/dir2/*') # # 5. Use the functions described below to create a custom make target which # runs your test executable and produces a code coverage report.