From 1c8da139593d9905436bb1d9e9f42db785ecaf23 Mon Sep 17 00:00:00 2001 From: Riccardo Milani Date: Tue, 23 Jan 2024 12:35:41 +0100 Subject: [PATCH] ci: Restore coverage fix #38 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8da5b06..733a2da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,7 +149,7 @@ if ( BUILD_TESTS ) add_executable(${CoMMA_TEST} ${TESTS}) if ( COVERAGE ) message(STATUS "Coverage support enabled") - add_compile_options("--coverage") + target_compile_options(${CoMMA_TEST} PUBLIC "--coverage") target_link_libraries(${CoMMA_TEST} ${CoMMA_LIB} Catch2::Catch2 gcov) else() target_link_libraries(${CoMMA_TEST} ${CoMMA_LIB} Catch2::Catch2)