[Supertux-Commit] r5176 - trunk/supertux
sommer at millhouse.dreamhost.com
sommer at millhouse.dreamhost.com
Sat Nov 3 09:25:19 PDT 2007
Author: sommer
Date: 2007-11-03 09:25:19 -0700 (Sat, 03 Nov 2007)
New Revision: 5176
Modified:
trunk/supertux/CMakeLists.txt
Log:
cmake with DEBUG=ON builds with -WALL -WERROR again
Modified: trunk/supertux/CMakeLists.txt
===================================================================
--- trunk/supertux/CMakeLists.txt 2007-11-03 16:15:20 UTC (rev 5175)
+++ trunk/supertux/CMakeLists.txt 2007-11-03 16:25:19 UTC (rev 5176)
@@ -61,7 +61,6 @@
## Some default settings
-OPTION(DEBUG "Build with debugging options" FALSE)
OPTION(ENABLE_SQDBG "Build squirrel script interpreter with debugging options" FALSE)
OPTION(ENABLE_OPENGL "Enable OpenGL support" TRUE)
OPTION(GENERATE_WRAPPER "Build miniswig and generate the wrapper" ${DEBUG})
@@ -211,9 +210,22 @@
# )
#ENDIF(${XGETTEXT} STREQUAL "XGETTEXT-NOTFOUND")
+
+## Debug options
+
+OPTION(DEBUG "Build with debugging options" FALSE)
+IF (DEBUG)
+ REMOVE_DEFINITIONS(-O2)
+ ADD_DEFINITIONS(-O0 -g -pg -Wall -Werror)
+ELSE (DEBUG)
+ ADD_DEFINITIONS(-O2)
+ REMOVE_DEFINITIONS(-O0 -g -pg -Wall -Werror)
+ENDIF (DEBUG)
+
+
## Some additional compiler switches
+ADD_DEFINITIONS(-fno-strict-aliasing)
-ADD_DEFINITIONS(-O2 -fno-strict-aliasing)
## Generate supertux executable in the right place
More information about the Supertux-Commit
mailing list