Dep/jemalloc: Fixed valgrind intergration

(cherry picked from commit a422dad870)
This commit is contained in:
Shauren
2017-11-19 20:14:48 +01:00
committed by funjoker
parent 367e9f210e
commit 0748d4443d

View File

@@ -52,6 +52,10 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT NOJEM)
${CMAKE_CURRENT_SOURCE_DIR}/src/util.c
)
if (VALGRIND)
set(jemalloc_STAT_SRC ${jemalloc_STAT_SRC} ${CMAKE_CURRENT_SOURCE_DIR}/src/valgrind.c)
endif()
add_library(jemalloc STATIC ${jemalloc_STAT_SRC})
target_include_directories(jemalloc