make coverage is only available with a debug build

This commit is contained in:
Florent Le Coz
2015-10-29 02:52:24 +01:00
parent db5e02a0a6
commit 3b7bbe1472
+2
View File
@@ -186,11 +186,13 @@ add_custom_target(check COMMAND "test_suite"
#
## Code coverage
#
if(CMAKE_BUILD_TYPE MATCHES DEBUG)
include(CodeCoverage)
SETUP_TARGET_FOR_COVERAGE(coverage
test_suite
coverage
)
endif()
#
## Install target