diff --git a/cmake/exiv2Config.cmake.in b/cmake/exiv2Config.cmake.in index e5809ac3eb..63c9362ff7 100644 --- a/cmake/exiv2Config.cmake.in +++ b/cmake/exiv2Config.cmake.in @@ -7,6 +7,10 @@ if(@EXIV2_ENABLE_PNG@) # if(EXIV2_ENABLE_PNG) find_dependency(ZLIB REQUIRED) endif() +if(@EXIV2_ENABLE_XMP@) # if(EXIV2_ENABLE_XMP) + find_dependency(EXPAT REQUIRED) +endif() + include("${CMAKE_CURRENT_LIST_DIR}/exiv2Export.cmake") check_required_components(exiv2)