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
10 - HINTS ${PC_BROTLIDEC_LIBDIR}
12 +if(NOT BUILD_SHARED_LIBS)
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
28 - HINTS ${PC_BROTLIENC_LIBDIR}
30 +if(NOT BUILD_SHARED_LIBS)
33 +set(BROTLIENC_LIBRARIES ${PC_BROTLIENC_${_S}LIBRARIES})
35 include(FindPackageHandleStandardArgs)
36 find_package_handle_standard_args(BrotliEnc