changeset 58:ad61489ce593

Set -g for debug builds
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 18 Mar 2014 10:03:34 +0000 (2014-03-18)
parents d1aaee32e491
children 3f6378647371
files CMakeLists.txt
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Tue Mar 18 10:03:03 2014 +0000
+++ b/CMakeLists.txt	Tue Mar 18 10:03:34 2014 +0000
@@ -24,6 +24,8 @@
 # Default to debug build
    if (NOT CMAKE_BUILD_TYPE)
      set (CMAKE_BUILD_TYPE Debug)
+     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
+     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
    endif (NOT CMAKE_BUILD_TYPE)
 endif()
 

http://wald.intevation.org/projects/trustbridge/