We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01bd066 + a2a46f0 commit 847f530Copy full SHA for 847f530
cmake/FindRdKafka.cmake
@@ -55,7 +55,11 @@ try_compile(RdKafka_FOUND ${CMAKE_CURRENT_BINARY_DIR}
55
56
if (RdKafka_FOUND)
57
add_library(RdKafka::rdkafka ${RDKAFKA_LIBRARY_TYPE} IMPORTED GLOBAL)
58
- set(RDKAFKA_DEPENDENCIES pthread rt ssl crypto dl z)
+ if (UNIX AND NOT APPLE)
59
+ set(RDKAFKA_DEPENDENCIES pthread rt ssl crypto dl z)
60
+ else()
61
+ set(RDKAFKA_DEPENDENCIES pthread ssl crypto dl z)
62
+ endif()
63
set_target_properties(RdKafka::rdkafka PROPERTIES
64
IMPORTED_NAME RdKafka
65
IMPORTED_LOCATION "${RdKafka_LIBRARY_PATH}"
0 commit comments