Don't link linux_jemalloc_helper itself to common_options
TARGET_OBJECTS automatically adds target dependnecy, specyfing linux_jemalloc_helper explicitly breaks library ordering due to cycle dependency
This commit is contained in:
parent
6be4c5d41d
commit
96d9bcd5ff
2 changed files with 2 additions and 2 deletions
2
external/jemalloc/CMakeLists.txt
vendored
2
external/jemalloc/CMakeLists.txt
vendored
|
|
@ -55,7 +55,7 @@ INTERFACE
|
||||||
|
|
||||||
target_link_libraries(external_jemalloc
|
target_link_libraries(external_jemalloc
|
||||||
INTERFACE
|
INTERFACE
|
||||||
-Wl,--push-state,--whole-archive,${SOURCE_DIR}/lib/libjemalloc_pic.a,--pop-state,-ldl
|
-Wl,--push-state,--whole-archive,${SOURCE_DIR}/lib/libjemalloc_pic.a,--pop-state
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(external_jemalloc jemalloc-build)
|
add_dependencies(external_jemalloc jemalloc-build)
|
||||||
|
|
|
||||||
|
|
@ -64,8 +64,8 @@ endif()
|
||||||
|
|
||||||
target_link_libraries(common_options
|
target_link_libraries(common_options
|
||||||
INTERFACE
|
INTERFACE
|
||||||
desktop-app::linux_jemalloc_helper
|
|
||||||
$<TARGET_OBJECTS:desktop-app::linux_jemalloc_helper>
|
$<TARGET_OBJECTS:desktop-app::linux_jemalloc_helper>
|
||||||
|
$<LINK_ONLY:desktop-app::external_jemalloc>
|
||||||
${CMAKE_DL_LIBS}
|
${CMAKE_DL_LIBS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue