mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 16:39:00 +08:00
8af6a4bf98
* [baseline][librdkafka] Add feature curl * x-add-version * update patch * x-add-wersion Co-authored-by: LilyWangLL <v-lilywang@microsoft.com>
17 lines
490 B
Diff
17 lines
490 B
Diff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index e911c28..bbeb99b 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -206,6 +206,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})
|