From 3b7bbe147229ee06de8b024e42e86d435cb0f72e Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 29 Oct 2015 02:52:24 +0100 Subject: make coverage is only available with a debug build --- CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'CMakeLists.txt') 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 -- cgit v1.2.3