Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
franneck94 committed Mar 5, 2024
1 parent f68f055 commit 2a0bef4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmake/CodeCoverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ if(NOT ${IS_CLANG} AND NOT ${IS_GCC})
endif()

find_program(GCOVR_PATH gcovr)
if(NOT GCOVR_PATH)
message(FATAL_ERROR "gcovr not found! Aborting...")
endif() # NOT GCOVR_PATH

set(COVERAGE_COMPILER_FLAGS "-g3 -O0 --coverage")
set(CMAKE_CXX_FLAGS_COVERAGE ${COVERAGE_COMPILER_FLAGS} FORCE)
Expand Down Expand Up @@ -76,6 +73,10 @@ endif()
# executable should always have a ZERO as exit code otherwise the coverage
# generation will not complete.
function(setup_target_for_coverage_gcovr_html)
if(NOT GCOVR_PATH)
message(FATAL_ERROR "gcovr not found! Aborting...")
endif() # NOT GCOVR_PATH

set(options NONE)
set(oneValueArgs BASE_DIRECTORY NAME)
set(multiValueArgs
Expand Down

0 comments on commit 2a0bef4

Please sign in to comment.