aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/librdkafka/lz4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/librdkafka/lz4.patch')
-rw-r--r--vcpkg/ports/librdkafka/lz4.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/librdkafka/lz4.patch b/vcpkg/ports/librdkafka/lz4.patch
new file mode 100644
index 0000000..29dd103
--- /dev/null
+++ b/vcpkg/ports/librdkafka/lz4.patch
@@ -0,0 +1,27 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7f3dd0f..168742c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -169,7 +169,8 @@ endif()
+ option(ENABLE_LZ4_EXT "Enable external LZ4 library support" ON)
+ set(WITH_LZ4_EXT OFF)
+ if(ENABLE_LZ4_EXT)
+- find_package(LZ4)
++ find_package(LZ4 NAMES lz4 REQUIRED)
++ add_library(LZ4::LZ4 ALIAS lz4::lz4)
+ if(LZ4_FOUND)
+ set(WITH_LZ4_EXT ON)
+ list(APPEND BUILT_WITH "LZ4_EXT")
+diff --git a/packaging/cmake/Config.cmake.in b/packaging/cmake/Config.cmake.in
+index 8a6522b..5f0bf25 100644
+--- a/packaging/cmake/Config.cmake.in
++++ b/packaging/cmake/Config.cmake.in
+@@ -28,7 +28,7 @@ if(@WITH_SSL@)
+ endif()
+
+ if(@WITH_LZ4_EXT@)
+- find_dependency(LZ4)
++ find_dependency(LZ4 NAMES lz4)
+ endif()
+
+ find_dependency(Threads)