summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--SetFlags.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index 903ae0ca8..3f91e3d9c 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -27,7 +27,7 @@ endmacro()
macro(set_flags)
# Add coverage processing, if requested:
- if (BUILD_WITH_COVERAGE)
+ if (CMAKE_BUILD_TYPE STREQUALS "COVERAGE")
message("Including CodeCoverage")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/lib/cmake-coverage/")
include(CodeCoverage)