George Cave
George Cave
Both the `add_code_coverage_all_targets` and `target_code_coverage` functions should have the ability to exclude files from being profiled with glob patterns: ``` add_code_coverage_all_targets(EXCLUDE .*/test/.*) *or* target_code_coverage(test_lib EXCLUDE .*/test/.*) ``` If you're using...
Ah, I see. To maintain flexibility between individual targets and the `all-type targets, they all maintain their own exclusion lists. So in this case, I'm pretty sure that, with the...
Alright, new theory. After far too long, I *think* that the problem is that clang/LLVM excludes via a regex pattern, and GCC/lcov uses a globbing pattern. So try out having...
I'm having trouble reproducing this. Is there a repo/commit somewhere you can point me to with the issue?
Alright, I've got something that's works for me, with your repo, try it out. ``` # ---- code coverage ---- if(DEFINED ENV{CPM_SOURCE_CACHE}) set(CCOV_EXCLUDES $ENV{CPM_SOURCE_CACHE}/.* $ENV{CPM_SOURCE_CACHE}/*) endif() set(CCOV_EXCLUDES ${CMAKE_BINARY_DIR}/.* ${CMAKE_BINARY_DIR}/*) add_code_coverage_all_targets(EXCLUDE...
New tag/release [here](https://github.com/StableCoder/cmake-scripts/releases/tag/23.09) should resolve it.