Mercurial > trustbridge
comparison CMakeLists.txt @ 58:ad61489ce593
Set -g for debug builds
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 18 Mar 2014 10:03:34 +0000 |
parents | 00aa5fa3c2fb |
children | 7ed285380301 |
comparison
equal
deleted
inserted
replaced
57:d1aaee32e491 | 58:ad61489ce593 |
---|---|
22 add_definitions (RELEASE_BUILD) | 22 add_definitions (RELEASE_BUILD) |
23 else() | 23 else() |
24 # Default to debug build | 24 # Default to debug build |
25 if (NOT CMAKE_BUILD_TYPE) | 25 if (NOT CMAKE_BUILD_TYPE) |
26 set (CMAKE_BUILD_TYPE Debug) | 26 set (CMAKE_BUILD_TYPE Debug) |
27 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") | |
28 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g") | |
27 endif (NOT CMAKE_BUILD_TYPE) | 29 endif (NOT CMAKE_BUILD_TYPE) |
28 endif() | 30 endif() |
29 | 31 |
30 # Warn level to be used for privileged parts | 32 # Warn level to be used for privileged parts |
31 set(WARN_HARDENING_FLAGS " -Wextra -Wconversion -Wformat-security") | 33 set(WARN_HARDENING_FLAGS " -Wextra -Wconversion -Wformat-security") |