[PATCH v2 01/18] add debug option for debug builds
Imre Deak
imre.deak at intel.com
Tue May 15 07:10:56 PDT 2012
Signed-off-by: Imre Deak <imre.deak at intel.com>
---
CMakeLists.txt | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 61a3a33..37b2b27 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -117,6 +117,8 @@ else ()
add_definitions (-Wall)
# XXX: it's safer to use ssize_t everywhere instead of disabling warning
add_definitions (-Wno-sign-compare) # comparison between signed and unsigned integer expressions
+ set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb -O0")
+ set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb -O0")
endif ()
if (MINGW)
--
1.7.5.4
More information about the apitrace
mailing list