Skip to content

Commit

Permalink
Link expat only for the build interface
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 authored and neheb committed Aug 2, 2023
1 parent b832728 commit 9f5767d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ target_include_directories(exiv2lib SYSTEM PRIVATE

if (EXIV2_ENABLE_XMP OR EXIV2_ENABLE_EXTERNAL_XMP)
target_include_directories(exiv2lib PRIVATE ${EXPAT_INCLUDE_DIR})
target_link_libraries(exiv2lib PRIVATE EXPAT::EXPAT)
target_link_libraries(exiv2lib PRIVATE $<BUILD_INTERFACE:EXPAT::EXPAT>)
list(APPEND requires_private_list "expat")
endif()

Expand Down

0 comments on commit 9f5767d

Please sign in to comment.