summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorBernd Wachter <bwachter-tmw@lart.info>2010-01-28 12:49:16 +0100
committerJared Adams <jaxad0127@gmail.com>2010-01-28 09:40:33 -0700
commit83270e09c1ec17f610df0645810eddffa0b8ccdf (patch)
treec01b3e8d7835a50daeefe8733e9691f08d8f1e2c /src/CMakeLists.txt
parent518ac7f5279139731aeaaf5ad742a9d45ff6e0d5 (diff)
downloadmana-83270e09c1ec17f610df0645810eddffa0b8ccdf.tar.gz
mana-83270e09c1ec17f610df0645810eddffa0b8ccdf.tar.bz2
mana-83270e09c1ec17f610df0645810eddffa0b8ccdf.tar.xz
mana-83270e09c1ec17f610df0645810eddffa0b8ccdf.zip
Add support for MingW crash handler; define DEBUG for debug builds
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 82befb21..cc0a0c3b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -29,6 +29,14 @@ IF (ENABLE_NLS)
SET(FLAGS "${FLAGS} -DENABLE_NLS=1")
ENDIF()
+IF (CMAKE_BUILD_TYPE)
+ STRING(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_TOLOWER)
+ IF((CMAKE_BUILD_TYPE_TOLOWER MATCHES debug) OR
+ (CMAKE_BUILD_TYPE_TOLOWER MATCHES relwithdebinfo))
+ SET(FLAGS "${FLAGS} -DDEBUG")
+ ENDIF()
+ENDIF()
+
IF (WIN32)
SET(EXTRA_LIBRARIES ws2_32 winmm)
FIND_PACKAGE(LibIntl REQUIRED)