mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
46037bb670
* Allow link with jemalloc * wip * fix * fix
15 lines
353 B
CMake
15 lines
353 B
CMake
if (APPLE)
|
|
find_library (RT_LIBRARIES apple_rt)
|
|
else ()
|
|
find_library (RT_LIBRARIES rt)
|
|
endif ()
|
|
|
|
message(STATUS "Using rt: ${RT_LIBRARIES}")
|
|
|
|
function (target_link_rt_by_force TARGET)
|
|
if (NOT APPLE)
|
|
set (FLAGS "-Wl,-no-as-needed -lrt -Wl,-as-needed")
|
|
set_property (TARGET ${TARGET} APPEND PROPERTY LINK_FLAGS "${FLAGS}")
|
|
endif ()
|
|
endfunction ()
|