Skip to content

Commit

Permalink
add exception for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovic-smile committed May 6, 2024
1 parent 710d0b9 commit a95c9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (${CMAKE_BUILD_TYPE} STREQUAL Coverage)
append_coverage_compiler_flags()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 --coverage -fno-inline")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 --coverage")
set(GCOVR_ADDITIONAL_ARGS "--exclude-unreachable-branches" "--exclude-throw-branches" )
set(GCOVR_ADDITIONAL_ARGS "--exclude-unreachable-branches" "--exclude-throw-branches" "--exclude-throw-branches" "--exclude-unconditional-branches" )

setup_target_for_coverage_gcovr_sonar(NAME "${PROJECT_NAME}_coverage_sonar"
EXECUTABLE RunTests
Expand Down

0 comments on commit a95c9a9

Please sign in to comment.