Signed-off-by: Connor Fawcett <connorfa@uk.ibm.com>
Fixes: https://tracker.ceph.com/issues/66158
endif(WITH_BABELTRACE)
option(DEBUG_GATHER "C_Gather debugging is enabled" ON)
-option(ENABLE_COVERAGE "Coverage is enabled" OFF)
option(PG_DEBUG_REFS "PG Ref debugging is enabled" OFF)
option(WITH_TESTS "enable the build of ceph-test package scripts/binaries" ON)
list(APPEND EXTRALIBS ${LIB_RESOLV})
endif()
+option(ENABLE_COVERAGE "Coverage is enabled" OFF)
if(${ENABLE_COVERAGE})
find_program(HAVE_GCOV gcov)
if(NOT HAVE_GCOV)
message(FATAL_ERROR "Coverage Enabled but gcov Not Found")
endif()
add_compile_options(
- -fprofile-arcs
- -ftest-coverage
+ --coverage
-O0)
+ add_link_options(
+ --coverage
+ )
list(APPEND EXTRALIBS gcov)
endif(${ENABLE_COVERAGE})