2022-07-02 02:10:23 +08:00
|
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2023-02-17 02:23:09 +08:00
|
|
|
index 37b43c4..106fe38 100644
|
2022-07-02 02:10:23 +08:00
|
|
|
--- a/src/CMakeLists.txt
|
|
|
|
+++ b/src/CMakeLists.txt
|
2023-02-17 02:23:09 +08:00
|
|
|
@@ -213,6 +213,11 @@ if(WITH_ZLIB)
|
2022-07-02 02:10:23 +08:00
|
|
|
target_link_libraries(rdkafka PUBLIC ZLIB::ZLIB)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
+if(WITH_CURL)
|
|
|
|
+ find_package(CURL CONFIG REQUIRED)
|
|
|
|
+ target_link_libraries(rdkafka PUBLIC CURL::libcurl)
|
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
if(WITH_ZSTD)
|
|
|
|
target_link_libraries(rdkafka PRIVATE ${ZSTD_LIBRARY})
|
|
|
|
target_include_directories(rdkafka PRIVATE ${ZSTD_INCLUDE_DIR})
|
2023-02-17 02:23:09 +08:00
|
|
|
@@ -296,7 +301,7 @@ if(NOT RDKAFKA_BUILD_STATIC)
|
|
|
|
set(PKG_CONFIG_DESCRIPTION "The Apache Kafka C/C++ library")
|
|
|
|
|
|
|
|
if(WITH_CURL)
|
|
|
|
- string(APPEND PKG_CONFIG_REQUIRES "curl ")
|
|
|
|
+ string(APPEND PKG_CONFIG_REQUIRES "libcurl ")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WITH_ZLIB)
|