mirror of
https://github.com/netdata/netdata.git
synced 2025-04-06 14:35:32 +00:00
Link mimalloc statically
This commit is contained in:
parent
027d6a087b
commit
c98e482d47
1 changed files with 6 additions and 1 deletions
|
@ -225,6 +225,11 @@ else()
|
|||
endif()
|
||||
|
||||
|
||||
set(MI_BUILD_SHARED Off)
|
||||
set(MI_BUILD_STATIC On)
|
||||
set(MI_BUILD_OBJECT Off)
|
||||
set(MI_BUILD_TESTS Off)
|
||||
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
mimalloc
|
||||
|
@ -1864,7 +1869,7 @@ target_include_directories(libnetdata BEFORE PUBLIC ${CONFIG_H_DIR} ${CMAKE_SOUR
|
|||
|
||||
|
||||
target_link_libraries(libnetdata PUBLIC
|
||||
mimalloc
|
||||
mimalloc-static
|
||||
"$<$<NOT:$<BOOL:${HAVE_BUILTIN_ATOMICS}>>:atomic>"
|
||||
"$<$<OR:$<BOOL:${OS_LINUX}>,$<BOOL:${OS_FREEBSD}>>:pthread;rt>"
|
||||
"$<$<BOOL:${OS_WINDOWS}>:kernel32;advapi32;winmm;rpcrt4;wevtapi;ole32;oleaut32;wbemuuid>"
|
||||
|
|
Loading…
Add table
Reference in a new issue