projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
566f8eb
)
cmake with DEBUG=ON builds with -WALL -WERROR again
author
Christoph Sommer
<mail@christoph-sommer.de>
Sat, 3 Nov 2007 16:25:19 +0000
(16:25 +0000)
committer
Christoph Sommer
<mail@christoph-sommer.de>
Sat, 3 Nov 2007 16:25:19 +0000
(16:25 +0000)
SVN-Revision: 5176
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
3a80414
..
c77d58b
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-61,7
+61,6
@@
MARK_AS_ADVANCED(
## Some default settings
## 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})
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(NOT EXISTS ${SUPERTUX_SOURCE_DIR}/src/scripting/wrapper.cpp)
# )
#ENDIF(${XGETTEXT} STREQUAL "XGETTEXT-NOTFOUND")
# )
#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
## Some additional compiler switches
+ADD_DEFINITIONS(-fno-strict-aliasing)
-ADD_DEFINITIONS(-O2 -fno-strict-aliasing)
## Generate supertux executable in the right place
## Generate supertux executable in the right place