mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 19:39:06 +08:00
59b58fc56d
* [arrow] Update Apache Arrow to 10.0.0 * Update versions * Simplify and make more robust * Use vcpkg_check_features() * Use lower case for CMake package name * Update version
29 lines
936 B
Diff
29 lines
936 B
Diff
diff --git a/cpp/cmake_modules/FindBrotli.cmake b/cpp/cmake_modules/FindBrotli.cmake
|
|
index 4053b79ca7..bdca85fab4 100644
|
|
--- a/cpp/cmake_modules/FindBrotli.cmake
|
|
+++ b/cpp/cmake_modules/FindBrotli.cmake
|
|
@@ -21,6 +21,23 @@ if(Brotli_FOUND)
|
|
return()
|
|
endif()
|
|
|
|
+if(ARROW_PACAKGE_KIND STREQUAL "vcpkg")
|
|
+ set(find_package_args "")
|
|
+ if(Brotli_FIND_VERSION)
|
|
+ list(APPEND find_package_args ${Brotli_FIND_VERSION})
|
|
+ endif()
|
|
+ if(Brotli_FIND_QUIETLY)
|
|
+ list(APPEND find_package_args QUIET)
|
|
+ endif()
|
|
+ find_package(Brotli NAMES unofficial-brotli ${find_package_args})
|
|
+ if(Brotli_FOUND)
|
|
+ add_library(Brotli::brotlicommon ALIAS unofficial::brotli::brotlicommon)
|
|
+ add_library(Brotli::brotlienc ALIAS unofficial::brotli::brotlienc)
|
|
+ add_library(Brotli::brotlidec ALIAS unofficial::brotli::brotlidec)
|
|
+ return()
|
|
+ endif()
|
|
+endif()
|
|
+
|
|
if(ARROW_BROTLI_USE_SHARED)
|
|
set(BROTLI_COMMON_LIB_NAMES
|
|
brotlicommon
|