Skip to content

Commit

Permalink
[build] Fixed CMAKE_BUILD_TYPE=Debug processing
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko authored and rndi committed Apr 26, 2019
1 parent f5f52c0 commit c05ca7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ endif()
# Set CMAKE_BUILD_TYPE properly, now that you know
# that ENABLE_DEBUG is set as it should.

if (ENABLE_DEBUG EQUAL 1)
set (CMAKE_BUILD_TYPE "Debug")
elseif (ENABLE_DEBUG EQUAL 2)
if (ENABLE_DEBUG EQUAL 2)
set (CMAKE_BUILD_TYPE "RelWithDebInfo")
elseif (ENABLE_DEBUG) # 1, ON, YES, TRUE, Y, or any other non-zero number
set (CMAKE_BUILD_TYPE "Debug")
else()
set (CMAKE_BUILD_TYPE "Release")
endif()
Expand Down

0 comments on commit c05ca7d

Please sign in to comment.