brotli-static.patch 801 B

1234567891011121314151617181920212223
  1. diff --git a/builds/cmake/FindBrotliDec.cmake b/builds/cmake/FindBrotliDec.cmake
  2. index 46356b1fd..ed4cc2409 100644
  3. --- a/builds/cmake/FindBrotliDec.cmake
  4. +++ b/builds/cmake/FindBrotliDec.cmake
  5. @@ -35,10 +35,17 @@ find_path(BROTLIDEC_INCLUDE_DIRS
  6. PATH_SUFFIXES brotli)
  7. find_library(BROTLIDEC_LIBRARIES
  8. - NAMES brotlidec
  9. + NAMES brotlidec brotlidec-static NAMES_PER_DIR
  10. HINTS ${PC_BROTLIDEC_LIBDIR}
  11. ${PC_BROTLIDEC_LIBRARY_DIRS})
  12. +if(BROTLIDEC_LIBRARIES MATCHES "-static")
  13. + find_library(BROTLICOMMON_LIBRARIES
  14. + NAMES brotlicommon-static
  15. + HINTS ${PC_BROTLIDEC_LIBDIR}
  16. + ${PC_BROTLIDEC_LIBRARY_DIRS})
  17. + set(BROTLIDEC_LIBRARIES ${BROTLIDEC_LIBRARIES} ${BROTLICOMMON_LIBRARIES})
  18. +endif()
  19. include(FindPackageHandleStandardArgs)
  20. find_package_handle_standard_args(