From 3279e7a61d3318151579ecd1c125c766b72a1565 Mon Sep 17 00:00:00 2001 From: pouillot Date: Sat, 14 Apr 2012 09:56:04 +0000 Subject: [PATCH] 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 --- cmake/macros.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/macros.cmake b/cmake/macros.cmake index 3625bd09d..ad6ebc55b 100644 --- a/cmake/macros.cmake +++ b/cmake/macros.cmake @@ -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)