aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/showoptions.cmake7
-rw-r--r--dep/jemalloc/CMakeLists.txt1
2 files changed, 8 insertions, 0 deletions
diff --git a/cmake/showoptions.cmake b/cmake/showoptions.cmake
index 87a372260a0..ea202e3ace7 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 )
diff --git a/dep/jemalloc/CMakeLists.txt b/dep/jemalloc/CMakeLists.txt
index db3c18dbb02..8f0692fc82c 100644
--- a/dep/jemalloc/CMakeLists.txt
+++ b/dep/jemalloc/CMakeLists.txt
@@ -53,6 +53,7 @@ set(jemalloc_STAT_SRC
include_directories(
${BUILDDIR}/
${CMAKE_CURRENT_SOURCE_DIR}/include
+ ${VALGRIND_INCLUDE_DIR}
)
add_definitions(-D_GNU_SOURCE -D_REENTRANT)