From 6be2a0e895f5a91a691a387d3065636ef0b395ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?= <4973094+kmilos@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:02:22 +0100 Subject: [PATCH] Export more dependencies in CMake config brotli and inih are not included as CMake doesn't ship standard find modules for those --- cmake/exiv2Config.cmake.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmake/exiv2Config.cmake.in b/cmake/exiv2Config.cmake.in index c9e2eba9b5..56687d977e 100644 --- a/cmake/exiv2Config.cmake.in +++ b/cmake/exiv2Config.cmake.in @@ -7,10 +7,20 @@ if(@EXIV2_ENABLE_PNG@) # if(EXIV2_ENABLE_PNG) find_dependency(ZLIB REQUIRED) endif() +if(@EXIV2_ENABLE_WEBREADY@) # if(EXIV2_ENABLE_WEBREADY) + if(@EXIV2_ENABLE_CURL@) # if(EXIV2_ENABLE_CURL) + find_dependency(CURL REQUIRED) + endif() +endif() + if(@EXIV2_ENABLE_XMP@) # if(EXIV2_ENABLE_XMP) find_dependency(EXPAT REQUIRED) endif() +if(@EXIV2_ENABLE_NLS@) # if(EXIV2_ENABLE_NLS) + find_dependency(Intl REQUIRED) +endif() + include("${CMAKE_CURRENT_LIST_DIR}/exiv2Export.cmake") check_required_components(exiv2)