0
0
Fork 0
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:
vkalintiris 2024-11-24 15:52:30 +02:00
parent 027d6a087b
commit c98e482d47

View file

@ -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>"