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.

(cherry picked from commit 60a29f7614)
This commit is contained in:
jackpoz
2015-06-20 22:54:53 +02:00
committed by DDuarte
parent a3faa57f3b
commit c0f56fbfd8
2 changed files with 8 additions and 0 deletions

View File

@@ -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)