mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 00:09:00 +08:00
6d16cb553a
* Add files via upload * [new port] avro-cpp * add boost-format * remove comments * remove comments * [librdkafka] upgrade version up to 2.0.2 * [librdkafka] upgrade version up to 2.0.2 * fix remarks * fix remarks --------- Co-authored-by: Alexander Smyslov <aleksandr.smyslov@libertexgroup.com> Co-authored-by: Smyslov Alexander Nikolayevich <aleksandr.smyslov@fxclub.com>
26 lines
751 B
Diff
26 lines
751 B
Diff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 37b43c4..106fe38 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -213,6 +213,11 @@ if(WITH_ZLIB)
|
|
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})
|
|
@@ -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)
|