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 /src/CMakeLists.txt | |
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/
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
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}/\\\"") |