Warning, /graphics/digikam/project/bundles/3rdparty/ext_exiv2/exiv2-brotli-vcpkg.patch is written in an unsupported language. File is not indexed.

0001 diff --git a/cmake/findDependencies.cmake b/cmake/findDependencies.cmake
0002 index bec2128a5..664522c2a 100644
0003 --- a/cmake/findDependencies.cmake
0004 +++ b/cmake/findDependencies.cmake
0005 @@ -47,7 +47,7 @@ if( EXIV2_ENABLE_PNG )
0006  endif( )
0007  
0008  if( EXIV2_ENABLE_BMFF AND EXIV2_ENABLE_BROTLI )
0009 -    find_package( Brotli REQUIRED )
0010 +    find_package( BROTLI NAMES unofficial-brotli CONFIG REQUIRED )
0011  endif( )
0012  
0013  if( EXIV2_ENABLE_WEBREADY )
0014 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
0015 index 15bab8c8a..3db5bdd08 100644
0016 --- a/src/CMakeLists.txt
0017 +++ b/src/CMakeLists.txt
0018 @@ -240,8 +240,7 @@ if( EXIV2_ENABLE_PNG )
0019  endif()
0020  
0021  if( EXIV2_ENABLE_BMFF AND BROTLI_FOUND )
0022 -    target_link_libraries( exiv2lib PRIVATE ${Brotli_LIBRARIES})
0023 -    target_include_directories(exiv2lib PRIVATE ${Brotli_INCLUDE_DIRS})
0024 +    target_link_libraries( exiv2lib PRIVATE unofficial::brotli::brotlidec)
0025      list(APPEND requires_private_list "libbrotlidec")
0026  endif()
0027