Skip to content

Commit

Permalink
Use shorthand --coverage option for COVERAGE=ON
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed May 31, 2022
1 parent 9418919 commit 2633988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libres/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
endif()

if(COVERAGE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
endif()

# -----------------------------------------------------------------
Expand Down

0 comments on commit 2633988

Please sign in to comment.