SetFlags.cmake: don't use ${} expansion on if STREQUAL
See http://stackoverflow.com/questions/19982340/cmake-compare-to-empty-string-with-strequal-failed
This commit is contained in:
parent
39fff19955
commit
6f0a538385
@ -28,7 +28,8 @@ endmacro()
|
|||||||
macro(set_flags)
|
macro(set_flags)
|
||||||
# Add coverage processing, if requested:
|
# Add coverage processing, if requested:
|
||||||
if (NOT MSVC)
|
if (NOT MSVC)
|
||||||
if (${CMAKE_BUILD_TYPE} STREQUAL "COVERAGE")
|
|
||||||
|
if (CMAKE_BUILD_TYPE STREQUAL "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)
|
||||||
|
Loading…
Reference in New Issue
Block a user