Skip to content

Commit

Permalink
NRN_COVERAGE_LIB does not need to be set to gcov anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrnhines committed Sep 24, 2023
1 parent 8c93cb8 commit bae398e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmake/Coverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ if(NRN_ENABLE_COVERAGE)
endif()
set(NRN_COVERAGE_FLAGS_UNQUOTED --coverage -fno-inline)
string(JOIN " " NRN_COVERAGE_FLAGS ${NRN_COVERAGE_FLAGS_UNQUOTED})
set(NRN_COVERAGE_LIB gcov)
set(NRN_COVERAGE_LINK_FLAGS --coverage)

if(NRN_COVERAGE_FILES)
Expand All @@ -60,11 +59,11 @@ if(NRN_ENABLE_COVERAGE)
"${NRN_COVERAGE_FLAGS}"
CACHE INTERNAL "Remind that this is always in effect from now on" FORCE)
list(APPEND NRN_COMPILE_FLAGS ${NRN_COVERAGE_FLAGS_UNQUOTED})
list(APPEND NRN_LINK_FLAGS ${NRN_COVERAGE_LINK_FLAGS})
list(APPEND CORENRN_EXTRA_CXX_FLAGS ${NRN_COVERAGE_FLAGS_UNQUOTED})
list(APPEND CORENRN_EXTRA_MECH_CXX_FLAGS ${NRN_COVERAGE_FLAGS_UNQUOTED})
list(APPEND CORENRN_EXTRA_LINK_FLAGS ${NRN_COVERAGE_LINK_FLAGS})
endif()
list(APPEND NRN_LINK_FLAGS ${NRN_COVERAGE_LINK_FLAGS})
list(APPEND CORENRN_EXTRA_LINK_FLAGS ${NRN_COVERAGE_LINK_FLAGS})
list(APPEND NRN_COMPILE_DEFS NRN_COVERAGE_ENABLED)
else()
unset(NRN_COVERAGE_FLAGS)
Expand Down

0 comments on commit bae398e

Please sign in to comment.