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