Re #475 Removed -DDEBUG by default (and renamed CMake option OPTION_DEBUG to OPTION_FORCE_DEBUG)

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4700 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: ecdaba7074df2e85deb7db55622febfa7a65ddd7
Former-commit-id: e23bec6ad1248e6859fdbaf4a64f6d4f3b9baf70
This commit is contained in:
pouillot 2012-04-14 09:56:04 +00:00
parent 2df69cbda5
commit 3279e7a61d

View file

@ -1022,7 +1022,7 @@ MACRO(ADD_SD_COMPILE_OPTIONS)
# CMake options.
SET(OPTION_OFFICIAL_ONLY false CACHE BOOL "Build / install only officially released contents")
SET(OPTION_DEBUG true CACHE BOOL "Enable debug symbols even in Release build")
SET(OPTION_FORCE_DEBUG false CACHE BOOL "Force debug symbols even in Release build (Automatic in Debug builds)")
SET(OPTION_TRACE true CACHE BOOL "Enable traces into the console or log file")
@ -1044,13 +1044,13 @@ MACRO(ADD_SD_COMPILE_OPTIONS)
ADD_DEFINITIONS(-D_SVID_SOURCE -D_BSD_SOURCE -DSHM)
IF(MSVC)
# Suppress meaningless MSVC warnings
# Suppress bothering MSVC warnings
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS)
ENDIF(MSVC)
IF(OPTION_DEBUG)
IF(OPTION_FORCE_DEBUG)
ADD_DEFINITIONS(-DDEBUG)
ENDIF(OPTION_DEBUG)
ENDIF(OPTION_FORCE_DEBUG)
IF(OPTION_TRACE)
ADD_DEFINITIONS(-DTRACE_OUT)
ENDIF(OPTION_TRACE)