1
0
Fork 0

Add missed jemalloc dependencies

This commit is contained in:
Ilya Fedin 2021-07-02 00:33:03 +04:00 committed by John Preston
parent 8d7772ab33
commit 32ec2b8db2

View file

@ -40,12 +40,19 @@ if (NOT JEMALLOC_FOUND)
${SOURCE_DIR}/include ${SOURCE_DIR}/include
) )
target_link_libraries(external_jemalloc_bundled
INTERFACE
dl
pthread
)
add_dependencies(external_jemalloc_bundled jemalloc) add_dependencies(external_jemalloc_bundled jemalloc)
target_link_libraries(external_jemalloc target_link_libraries(external_jemalloc
INTERFACE INTERFACE
-Wl,--whole-archive -Wl,--whole-archive
external_jemalloc_bundled $<TARGET_FILE:external_jemalloc_bundled>
-Wl,--no-whole-archive -Wl,--no-whole-archive
external_jemalloc_bundled
) )
endif() endif()