1
0

Update SetFlags.cmake

This commit is contained in:
worktycho 2014-06-27 10:27:02 +01:00
parent 78442edf1d
commit 62669f64de

View File

@ -27,7 +27,7 @@ endmacro()
macro(set_flags) macro(set_flags)
# Add coverage processing, if requested: # Add coverage processing, if requested:
if (BUILD_WITH_COVERAGE) if (CMAKE_BUILD_TYPE STREQUALS "COVERAGE")
message("Including CodeCoverage") message("Including CodeCoverage")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/lib/cmake-coverage/") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/lib/cmake-coverage/")
include(CodeCoverage) include(CodeCoverage)