mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 03:36:40 +08:00
853e515b2b
Co-authored-by: Theodore Tsirpanis <theodore.tsirpanis@tiledb.com>
28 lines
780 B
Diff
28 lines
780 B
Diff
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)
|