Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / web / woff2 / brotli-static.patch
blob4ed6d7e741a891ee04e25b6bdfe39fc6cc47b583
1 diff a/cmake/FindBrotliDec.cmake b/cmake/FindBrotliDec.cmake
2 --- a/cmake/FindBrotliDec.cmake
3 +++ b/cmake/FindBrotliDec.cmake
4 @@ -18,10 +18,10 @@ find_path(BROTLIDEC_INCLUDE_DIRS
5 HINTS ${PC_BROTLIDEC_INCLUDEDIR}
8 -find_library(BROTLIDEC_LIBRARIES
9 - NAMES brotlidec
10 - HINTS ${PC_BROTLIDEC_LIBDIR}
12 +if(NOT BUILD_SHARED_LIBS)
13 + set(_S "STATIC_")
14 +endif()
15 +set(BROTLIDEC_LIBRARIES ${PC_BROTLIDEC_${_S}LIBRARIES})
17 include(FindPackageHandleStandardArgs)
18 find_package_handle_standard_args(BrotliDec
19 diff a/cmake/FindBrotliEnc.cmake b/cmake/FindBrotliEnc.cmake
20 --- a/cmake/FindBrotliEnc.cmake
21 +++ b/cmake/FindBrotliEnc.cmake
22 @@ -18,10 +18,10 @@ find_path(BROTLIENC_INCLUDE_DIRS
23 HINTS ${PC_BROTLIENC_INCLUDEDIR}
26 -find_library(BROTLIENC_LIBRARIES
27 - NAMES brotlienc
28 - HINTS ${PC_BROTLIENC_LIBDIR}
30 +if(NOT BUILD_SHARED_LIBS)
31 + set(_S "STATIC_")
32 +endif()
33 +set(BROTLIENC_LIBRARIES ${PC_BROTLIENC_${_S}LIBRARIES})
35 include(FindPackageHandleStandardArgs)
36 find_package_handle_standard_args(BrotliEnc