Make lcov gcov etc optional

make coverage will display an error instead
This commit is contained in:
Florent Le Coz
2015-10-29 03:20:39 +01:00
parent 3b7bbe1472
commit 9fe94215da
2 changed files with 24 additions and 20 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ add_custom_target(check COMMAND "test_suite"
#
## Code coverage
#
if(CMAKE_BUILD_TYPE MATCHES DEBUG)
if(CMAKE_BUILD_TYPE MATCHES Debug)
include(CodeCoverage)
SETUP_TARGET_FOR_COVERAGE(coverage
test_suite