Skip to content

Commit

Permalink
Make gcov play nicely with Conan2.
Browse files Browse the repository at this point in the history
`tc.cache_variables["CMAKE_EXE_LINKER_FLAGS"] = "-Wl,--unresolved-symbols=ignore-in-shared-libs"` would be overriden previously.
  • Loading branch information
PengZheng committed Dec 14, 2023
1 parent 3e61888 commit 452bfb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/celix_project/CodeCoverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ IF(ENABLE_CODE_COVERAGE)

# Setup compiler options
ADD_DEFINITIONS(--coverage)
set(CMAKE_SHARED_LINKER_FLAGS "--coverage")
set(CMAKE_EXE_LINKER_FLAGS "--coverage")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --coverage")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")

IF(NOT TARGET coverage)
add_custom_target(coverage
Expand Down

0 comments on commit 452bfb3

Please sign in to comment.