Skip to content

Commit 863c746

Browse files
Fix macos build
1 parent 00a7da5 commit 863c746

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ if (ENABLE_ASAN)
2929
set(LIBRDKAFKA_FLAGS "--enable-devel")
3030
endif()
3131

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+
3237
if(STATIC_BUILD)
3338
add_custom_command(
3439
OUTPUT ${CMAKE_BINARY_DIR}/librdkafka/lib/librdkafka.a

0 commit comments

Comments
 (0)