diff options
author | Marius Kintel <marius@kintel.net> | 2011-11-08 04:12:49 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-11-08 04:12:49 (GMT) |
commit | f5ce77d435d2dbbe2ac3d36eafc240785dd2d9fa (patch) | |
tree | 47bba044bb3aafb97c89532a7487e5ef6424ab10 | |
parent | 5a97bff9094f142c5d895ba5894399a4982b7319 (diff) |
set -DDEBUG for debug builds
-rw-r--r-- | tests/CMakeLists.txt | 4 |
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 # |