define _DEBUG for debug builds (cherry picked from commit 3e261c022623306d4dba0cb11fa...
authorFrank Osterfeld <frank@kdab.net>
Thu, 30 Apr 2009 09:02:07 +0000 (10:02 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Mon, 30 Nov 2009 12:43:19 +0000 (13:43 +0100)
cmake/CMakeLists.txt

index 28d8d56..d4b2629 100644 (file)
@@ -110,6 +110,8 @@ if(WIN32)
   set (CMAKE_DEBUG_POSTFIX "d")
 endif(WIN32)
 
+SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}  -D_DEBUG")
+
 #########################################################################
 # Windows CE
 #