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.
I've added a check for the flag with commit dd981c94609e83242ace8ad9e63b77ab656d453f, so it shouldn't be an issue any more, at least with that specific flag.
It is already in there, albeit just on WIN32, I'll change it to be on all platforms. In `set_sanitizer_options()`, to test the 'availability' of an option set it calls `test_san_flags()`,...
I've updated the latest release with use of `check_cxx_compiler_flag`.