aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/EnableCoverage.cmake10
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()