diff options
author | Bernd Wachter <bwachter-tmw@lart.info> | 2010-01-28 15:27:15 +0100 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-01-28 09:40:33 -0700 |
commit | 518ac7f5279139731aeaaf5ad742a9d45ff6e0d5 (patch) | |
tree | 3b310c529b34faaf505684d2b8bb0d70bdd2fe87 | |
parent | 571bdb82402f1cd59182f9ebdff17aab9d9c9d56 (diff) | |
download | mana-518ac7f5279139731aeaaf5ad742a9d45ff6e0d5.tar.gz mana-518ac7f5279139731aeaaf5ad742a9d45ff6e0d5.tar.bz2 mana-518ac7f5279139731aeaaf5ad742a9d45ff6e0d5.tar.xz mana-518ac7f5279139731aeaaf5ad742a9d45ff6e0d5.zip |
Add minimal debug flags for Windows release builds; move definition of flags to src/
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/CMakeLists.txt | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f98e9f61..48e63788 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,11 +11,6 @@ SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules) FIND_PACKAGE(Gettext) -IF (CMAKE_COMPILER_IS_GNUCXX) - # Help getting compilation warnings - SET(CMAKE_CXX_FLAGS "-Wall") -ENDIF() - OPTION(WITH_OPENGL "Enable OpenGL support" ON) OPTION(ENABLE_NLS "Enable building of tranlations" ON) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e101db0c..82befb21 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -10,6 +10,17 @@ FIND_PACKAGE(PhysFS REQUIRED) FIND_PACKAGE(PNG REQUIRED) FIND_PACKAGE(Gettext REQUIRED) +IF (CMAKE_COMPILER_IS_GNUCXX) + # Help getting compilation warnings + SET(CMAKE_CXX_FLAGS "-Wall") + IF (WIN32) + # This includes enough debug information to get something useful + # from Dr. Mingw while keeping binary size down. Almost useless + # with gdb, though. + SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -ggdb0 -gstabs2") + ENDIF() +ENDIF() + SET(FLAGS "-DPACKAGE_VERSION=\\\"${VERSION}\\\"") SET(FLAGS "${FLAGS} -DPKG_DATADIR=\\\"${PKG_DATADIR}/\\\"") SET(FLAGS "${FLAGS} -DLOCALEDIR=\\\"${LOCALEDIR}/\\\"") |