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" ...@@ -186,11 +186,13 @@ add_custom_target(check COMMAND "test_suite"
# #
## Code coverage ## Code coverage
# #
include(CodeCoverage) if(CMAKE_BUILD_TYPE MATCHES DEBUG)
SETUP_TARGET_FOR_COVERAGE(coverage include(CodeCoverage)
test_suite SETUP_TARGET_FOR_COVERAGE(coverage
coverage test_suite
) coverage
)
endif()
# #
## Install target ## 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