changeset 445:76a896740f94

Added a DebugValgrind configuration
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 29 Jul 2010 09:54:57 +0900
parents 25c111bec522
children 66f58cecf3cd
files CMakeLists.txt
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
"Welcome to our mercurial repository"