From dc2753cd95b607a7202b40bad3aad472558bf350 Mon Sep 17 00:00:00 2001 From: Julius Michaelis Date: Mon, 23 Dec 2024 15:16:46 +0900 Subject: [PATCH] #158 but for MacOS: pass library existence check when dynamic library exists --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99022eee..6228f35b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,7 +66,7 @@ if (NOT BUILD_OPTION_DOC_ONLY) message(FATAL_ERROR "Could not find headers for librdkafka!") endif () - if (EXISTS "${LIBRDKAFKA_LIBRARY_DIR}/librdkafka.a" OR EXISTS "${LIBRDKAFKA_LIBRARY_DIR}/librdkafka.so" OR EXISTS "${LIBRDKAFKA_LIBRARY_DIR}/rdkafka.lib" ) + if (EXISTS "${LIBRDKAFKA_LIBRARY_DIR}/librdkafka.a" OR EXISTS "${LIBRDKAFKA_LIBRARY_DIR}/librdkafka.so" OR EXISTS "${LIBRDKAFKA_LIBRARY_DIR}/rdkafka.lib" OR EXISTS "${LIBRDKAFKA_LIBRARY_DIR}/librdkafka.dylib" ) message(STATUS "librdkafka library directory: ${LIBRDKAFKA_LIBRARY_DIR}") else () message(FATAL_ERROR "Could not find library for librdkafka!")