From 44b806ae1e4919457f2ea20df46bc9d984e9d974 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Wed, 23 Jun 2010 23:08:26 +0000 Subject: [PATCH] Turns out this is a better way to define the DEBUG flag (and by better I mean... it works) --- fastlib/trunk/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fastlib/trunk/CMakeLists.txt b/fastlib/trunk/CMakeLists.txt index ce4d130eb4..602586b4ca 100644 --- a/fastlib/trunk/CMakeLists.txt +++ b/fastlib/trunk/CMakeLists.txt @@ -29,8 +29,9 @@ if(WITH_SPARSE) endif(WITH_SPARSE) if(DEBUG) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -DDEBUG") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -DDEBUG") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0") + add_definitions(-DDEBUG) endif(DEBUG) # ensure we are only using one of the SCALE_x options