We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00a7da5 commit 863c746Copy full SHA for 863c746
CMakeLists.txt
@@ -29,6 +29,11 @@ if (ENABLE_ASAN)
29
set(LIBRDKAFKA_FLAGS "--enable-devel")
30
endif()
31
32
+if (APPLE)
33
+ set(LIBRDKAFKA_CXX_FLAGS "${LIBRDKAFKA_CXX_FLAGS} ${CMAKE_C_SYSROOT_FLAG} ${CMAKE_OSX_SYSROOT}")
34
+ set(LIBRDKAFKA_C_FLAGS "${LIBRDKAFKA_C_FLAGS} ${CMAKE_C_SYSROOT_FLAG} ${CMAKE_OSX_SYSROOT}")
35
+endif()
36
+
37
if(STATIC_BUILD)
38
add_custom_command(
39
OUTPUT ${CMAKE_BINARY_DIR}/librdkafka/lib/librdkafka.a
0 commit comments