Commit 3b7bbe14 authored by louiz’'s avatar louiz’

make coverage is only available with a debug build

parent db5e02a0
......@@ -186,11 +186,13 @@ add_custom_target(check COMMAND "test_suite"
#
## Code coverage
#
include(CodeCoverage)
SETUP_TARGET_FOR_COVERAGE(coverage
test_suite
coverage
)
if(CMAKE_BUILD_TYPE MATCHES DEBUG)
include(CodeCoverage)
SETUP_TARGET_FOR_COVERAGE(coverage
test_suite
coverage
)
endif()
#
## Install target
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment