summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-11-08 04:12:49 (GMT)
committerMarius Kintel <marius@kintel.net>2011-11-08 04:12:49 (GMT)
commitf5ce77d435d2dbbe2ac3d36eafc240785dd2d9fa (patch)
tree47bba044bb3aafb97c89532a7487e5ef6424ab10 /tests
parent5a97bff9094f142c5d895ba5894399a4982b7319 (diff)
set -DDEBUG for debug builds
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index daf4933..6966436 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -13,6 +13,10 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
+if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG")
+endif()
+
#
# Windows
#
contact: Jan Huwald // Impressum