diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-02-23 15:31:24 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-02-23 15:31:24 +0100 |
commit | db39910f080534159ce8c7d55fa458365de7c3f3 (patch) | |
tree | a0c872edccc12d60bad587b65d5e8eaf374e5060 /configure.cmake | |
parent | 925942e7af49eebc5ffeff705bb2167eb86a9dcb (diff) | |
download | mariadb-git-db39910f080534159ce8c7d55fa458365de7c3f3.tar.gz |
disable safemalloc for valgrind builds.
always try to use valgrind headers in debug builds.
define HAVE_valgrind for --with-valgrind
fix valgrind check in my_valgrind.h
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/configure.cmake b/configure.cmake index ea000ad69a0..66ee73ddc03 100644 --- a/configure.cmake +++ b/configure.cmake @@ -1024,13 +1024,12 @@ if available and 'smp' configuration otherwise.") MARK_AS_ADVANCED(WITH_ATOMIC_LOCKS MY_ATOMIC_MODE_RWLOCK MY_ATOMIC_MODE_DUMMY) IF(WITH_VALGRIND) - CHECK_INCLUDE_FILES("valgrind/memcheck.h;valgrind/valgrind.h" - HAVE_VALGRIND_HEADERS) - IF(HAVE_VALGRIND_HEADERS) - SET(HAVE_VALGRIND 1) - ENDIF() + SET(HAVE_valgrind 1) ENDIF() +CHECK_INCLUDE_FILES("valgrind/memcheck.h;valgrind/valgrind.h" + HAVE_VALGRIND) + #-------------------------------------------------------------------- # Check for IPv6 support #-------------------------------------------------------------------- |