Add Debug compile flag if we're building in debug mode.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-12-23 12:04:55 +01:00
parent 95266f71ba
commit b3c9c95345
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ if (WINDOWS)
add_compile_options(-m64) add_compile_options(-m64)
endif (WINDOWS) endif (WINDOWS)
if (CMAKE_BUILD_TYPE MATCHES "Debug")
ADD_DEFINITIONS(-DDEBUG)
endif()
set(LINKS) set(LINKS)
if (NOT WINDOWS AND PRETTYTRACES) if (NOT WINDOWS AND PRETTYTRACES)
set(LINKS ${LINKS} -ldw) set(LINKS ${LINKS} -ldw)