# HG changeset patch # User Sebastien Decugis # Date 1280364897 -32400 # Node ID 76a896740f945022d5cbaa484665298d3ff48e9d # Parent 25c111bec522d74a421b40ad7740741805abfa39 Added a DebugValgrind configuration diff -r 25c111bec522 -r 76a896740f94 CMakeLists.txt --- a/CMakeLists.txt Wed Jul 28 18:46:18 2010 +0900 +++ b/CMakeLists.txt Thu Jul 29 09:54:57 2010 +0900 @@ -43,10 +43,13 @@ # Add a "DebianPackage" build type used when creating the Debian packages SET(CMAKE_C_FLAGS_DEBIANPACKAGE "${CMAKE_C_FLAGS_RELWITHDEBINFO}") +# Add a "DebugValgrind" build type used for checking execution with Valgrind tool +SET(CMAKE_C_FLAGS_DEBUGVALGRIND "-Wall -g -O0") + # Set the DEBUG flag for Debug and Profiling builds -IF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling") +IF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling|DebugValgrind") SET(DEBUG 1) -ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling") +ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling|DebugValgrind") # some subfolders use yacc and lex parsers SET(BISON_GENERATE_DEFINES TRUE)