Skip to content

Commit

Permalink
use case-insensitive match when setting DEBUG_BUILD
Browse files Browse the repository at this point in the history
fixes #4840
  • Loading branch information
Johan Rehnberg committed Jun 27, 2015
1 parent 6eb0391 commit 11dee4e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions CMakeLists.txt
Expand Up @@ -41,11 +41,12 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
endif()

# set some internal vars
If ("${CMAKE_BUILD_TYPE}" MATCHES "^DEBUG")
Set(DEBUG_BUILD TRUE)
Else ("${CMAKE_BUILD_TYPE}" MATCHES "^DEBUG")
Set(DEBUG_BUILD FALSE)
EndIf ("${CMAKE_BUILD_TYPE}" MATCHES "^DEBUG")
string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_UPPER)
if("${CMAKE_BUILD_TYPE_UPPER}" MATCHES "^DEBUG")
set(DEBUG_BUILD TRUE)
else()
set(DEBUG_BUILD FALSE)
endif()


if(NOT "${CMAKE_C_FLAGS}" STREQUAL "")
Expand Down

1 comment on commit 11dee4e

@abma
Copy link
Contributor

@abma abma commented on 11dee4e Jun 30, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.