Add missed jemalloc dependencies
This commit is contained in:
parent
8d7772ab33
commit
32ec2b8db2
1 changed files with 8 additions and 1 deletions
9
external/jemalloc/CMakeLists.txt
vendored
9
external/jemalloc/CMakeLists.txt
vendored
|
|
@ -40,12 +40,19 @@ if (NOT JEMALLOC_FOUND)
|
|||
${SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
target_link_libraries(external_jemalloc_bundled
|
||||
INTERFACE
|
||||
dl
|
||||
pthread
|
||||
)
|
||||
|
||||
add_dependencies(external_jemalloc_bundled jemalloc)
|
||||
|
||||
target_link_libraries(external_jemalloc
|
||||
INTERFACE
|
||||
-Wl,--whole-archive
|
||||
external_jemalloc_bundled
|
||||
$<TARGET_FILE:external_jemalloc_bundled>
|
||||
-Wl,--no-whole-archive
|
||||
external_jemalloc_bundled
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue