summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-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