Merge remote-tracking branch 'origin/topic/jsiwek/debug-flags'

* origin/topic/jsiwek/debug-flags:
  Workaround for FreeBSD CMake port missing debug flags
This commit is contained in:
Robin Sommer 2011-08-12 23:37:12 -07:00
commit 1aff02ea96

View file

@ -63,7 +63,8 @@ set(EXTRA_COMPILE_FLAGS "-Wall -Wno-unused")
if (ENABLE_DEBUG)
set(CMAKE_BUILD_TYPE Debug)
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -DDEBUG")
# manual add of -g works around its omission in FreeBSD's CMake port
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -g -DDEBUG")
else ()
set(CMAKE_BUILD_TYPE RelWithDebInfo)
endif ()