aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2015-06-20 22:54:53 +0200
committerjackpoz <giacomopoz@gmail.com>2015-06-20 23:01:53 +0200
commit60a29f761467c0ac76129f2f761ca0de9e7d237d (patch)
treed6c1fffbd0d645d8a675f3f4c5c4788b4d24db78 /cmake
parentd5c84d5aaafdb3960e0f497168bcf87c0ae93702 (diff)
Core/Misc: Add valgrind support for jemalloc
Set CMake option VALGRIND to add valgrind support to jemalloc. Set CMake parameter VALGRIND_INCLUDE_DIR to the valgrind include directory.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/showoptions.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/showoptions.cmake b/cmake/showoptions.cmake
index bb848a2a9c0..3136730a6b4 100644
--- a/cmake/showoptions.cmake
+++ b/cmake/showoptions.cmake
@@ -106,6 +106,13 @@ if ( NOJEM )
message(" *** jemalloc linking has been disabled!")
message(" *** Please note that this is for DEBUGGING WITH VALGRIND only!")
message(" *** DO NOT DISABLE IT UNLESS YOU KNOW WHAT YOU'RE DOING!")
+elseif ( VALGRIND )
+ message("")
+ message(" *** VALGRIND - WARNING!")
+ message(" *** jemalloc will be configured to support Valgrind")
+ message(" *** Please specify the valgrind include directory in VALGRIND_INCLUDE_DIR option if you get build errors")
+ message(" *** Please note that this is for DEBUGGING WITH VALGRIND only!")
+ add_definitions(-DJEMALLOC_VALGRIND)
endif()
if ( HELGRIND )