1
0

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:
archshift 2014-07-02 21:19:09 -07:00
parent 39fff19955
commit 6f0a538385

View File

@ -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)