File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ if(@EXIV2_ENABLE_PNG@) # if(EXIV2_ENABLE_PNG)
77 find_dependency(ZLIB REQUIRED)
88endif ()
99
10+ if (@EXIV2_ENABLE_XMP@) # if(EXIV2_ENABLE_XMP)
11+ find_dependency(EXPAT REQUIRED)
12+ endif ()
13+
1014include ("${CMAKE_CURRENT_LIST_DIR} /exiv2Export.cmake" )
1115
1216check_required_components(exiv2)
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ target_include_directories(exiv2lib SYSTEM PRIVATE
184184
185185if (EXIV2_ENABLE_XMP OR EXIV2_ENABLE_EXTERNAL_XMP)
186186 target_include_directories (exiv2lib PRIVATE ${EXPAT_INCLUDE_DIR} )
187- target_link_libraries (exiv2lib PRIVATE $<BUILD_INTERFACE: EXPAT::EXPAT> )
187+ target_link_libraries (exiv2lib PRIVATE EXPAT::EXPAT)
188188 list (APPEND requires_private_list "expat" )
189189endif ()
190190
You can’t perform that action at this time.
0 commit comments