summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-10-29 02:52:24 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-10-29 02:52:24 +0100
commit3b7bbe147229ee06de8b024e42e86d435cb0f72e (patch)
tree0ba0aa7f1dedb4e6477332c7d014a25c2a99b2c0
parentdb5e02a0a6c1056038aaddec6b586032ff47b9b6 (diff)
downloadbiboumi-3b7bbe147229ee06de8b024e42e86d435cb0f72e.tar.gz
biboumi-3b7bbe147229ee06de8b024e42e86d435cb0f72e.tar.bz2
biboumi-3b7bbe147229ee06de8b024e42e86d435cb0f72e.tar.xz
biboumi-3b7bbe147229ee06de8b024e42e86d435cb0f72e.zip
make coverage is only available with a debug build
-rw-r--r--CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b6411ab..d8633d8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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