Oops, we need to tell the compiler to set the DEBUG macro flag.

This commit is contained in:
Ryan Curtin
2010-06-22 05:42:01 +00:00
parent f4c89b8008
commit e07ae52aed
+2 -2
View File
@@ -29,8 +29,8 @@ if(WITH_SPARSE)
endif(WITH_SPARSE)
if(DEBUG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -DDEBUG")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -DDEBUG")
endif(DEBUG)
# ensure we are only using one of the SCALE_x options