Skip to content

Commit

Permalink
Add -coverage option to gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Godzil committed Feb 20, 2020
1 parent 01e3f08 commit b040bc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/Coveralls.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ macro(coveralls_turn_on_coverage)
message(FATAL_ERROR "Coveralls: Code coverage results with an optimised (non-Debug) build may be misleading! Add -DCMAKE_BUILD_TYPE=Debug")
endif()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage -coverage")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage -coverage")
endmacro()


Expand Down

0 comments on commit b040bc0

Please sign in to comment.