Skip to content

Commit

Permalink
define _DEBUG on Debug Builds with CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
wwiv committed Sep 16, 2018
1 parent 2ece3e3 commit b4edfd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/Common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ elseif (WIN32)
endif(MSVC)
endif (UNIX)

IF(${CMAKE_BUILD_TYPE} STREQUAL Debug)
MESSAGE("Adding Debug flag...")
ADD_DEFINITIONS(-D_DEBUG)
ENDIF(${CMAKE_BUILD_TYPE} STREQUAL Debug)

function(SET_WARNING_LEVEL_4)
message(STATUS "Setting Warning Level 4")
if(WIN32 AND MSVC)
Expand Down

0 comments on commit b4edfd0

Please sign in to comment.