diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-05-01 10:37:09 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-05-01 10:37:09 +0200 |
| commit | bc7389dd19eee57fa2f34cf2e7ba7d1ebfad0878 (patch) | |
| tree | 20bebc646f8352d75c0840bf8c59d7f41f7637bf /cmake/Modules | |
| parent | 9ff0dffb026eae3b80e3e0b8bbb941e3e3b8b01f (diff) | |
| download | kernel-bc7389dd19eee57fa2f34cf2e7ba7d1ebfad0878.tar.xz kernel-bc7389dd19eee57fa2f34cf2e7ba7d1ebfad0878.zip | |
ci: clean up coverage setup
Diffstat (limited to 'cmake/Modules')
| -rw-r--r-- | cmake/Modules/EnableCoverage.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmake/Modules/EnableCoverage.cmake b/cmake/Modules/EnableCoverage.cmake index 9602869..20be368 100644 --- a/cmake/Modules/EnableCoverage.cmake +++ b/cmake/Modules/EnableCoverage.cmake @@ -1,9 +1,9 @@ -function (enable_coverage TARGET) - target_compile_options("${TARGET}" PRIVATE +function(enable_coverage TARGET) + target_compile_options("${TARGET}" PUBLIC "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:-fcondition-coverage>" "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:--coverage>" ) - target_link_libraries("${TARGET}" PRIVATE - "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:gcov>" + target_link_options("${TARGET}" PUBLIC + "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:--coverage>" ) -endfunction ()
\ No newline at end of file +endfunction() |
