more options for coverage

This commit is contained in:
John
2021-11-13 18:41:41 +01:00
parent e4ee78db0d
commit 598c45dddd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ endif(NOT HAVE_ARGP)
option(coverage "enable code coverage tracking." OFF)
if(NOT coverage STREQUAL OFF)
add_definitions(-coverage -O0)
add_definitions(-g -O0 --coverage -Wall)
link_libraries(gcov)
message(STATUS "coverage enabled")
endif(NOT coverage STREQUAL OFF)