mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-10-31 18:47:48 +00:00
remove rt lib if mac os
This commit is contained in:
@@ -55,7 +55,11 @@ try_compile(RdKafka_FOUND ${CMAKE_CURRENT_BINARY_DIR}
|
||||
|
||||
if (RdKafka_FOUND)
|
||||
add_library(RdKafka::rdkafka ${RDKAFKA_LIBRARY_TYPE} IMPORTED GLOBAL)
|
||||
set(RDKAFKA_DEPENDENCIES pthread rt ssl crypto dl z)
|
||||
if (UNIX AND NOT APPLE)
|
||||
set(RDKAFKA_DEPENDENCIES pthread rt ssl crypto dl z)
|
||||
else()
|
||||
set(RDKAFKA_DEPENDENCIES pthread ssl crypto dl z)
|
||||
endif()
|
||||
set_target_properties(RdKafka::rdkafka PROPERTIES
|
||||
IMPORTED_NAME RdKafka
|
||||
IMPORTED_LOCATION "${RdKafka_LIBRARY_PATH}"
|
||||
|
||||
Reference in New Issue
Block a user