Skip to content

Commit

Permalink
merge: Merge branch '38-ci-coverage-not-working' into 'main'
Browse files Browse the repository at this point in the history
Resolve "[CI] Coverage not working"

Closes #38

See merge request numerics/solver/comma!34
  • Loading branch information
Riccardo Milani committed Jan 23, 2024
2 parents 14d5a28 + 1c8da13 commit 4dde9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4dde9dc

Please sign in to comment.