Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/timw/fix-coverage-part-deux'
Browse files Browse the repository at this point in the history
* origin/topic/timw/fix-coverage-part-deux:
  Use EXTRA_COMPILE_FLAGS for coverage flag
  • Loading branch information
timwoj committed May 21, 2024
2 parents 925c32d + bfa7c3c commit 71ac5eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SetDefaultCompileFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ if ("${PROJECT_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")

if ("${_build_type_upper}" STREQUAL "DEBUG")
if (ENABLE_COVERAGE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} --coverage")
endif ()
# manual add of -g works around its omission in FreeBSD's CMake port
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -g -DDEBUG -DBRO_DEBUG")
Expand Down

0 comments on commit 71ac5eb

Please sign in to comment.