Skip to content

Commit

Permalink
Fix build failure on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Aug 27, 2021
1 parent 9722e03 commit 805fd80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ target_include_directories(exiv2lib SYSTEM PRIVATE
)

target_include_directories(exiv2lib PRIVATE ${EXPAT_INCLUDE_DIR})
target_link_libraries(exiv2lib PRIVATE EXPAT::EXPAT)
target_link_libraries(exiv2lib
PRIVATE
$<BUILD_INTERFACE:${EXPAT_LIBRARY}>
)

if (EXIV2_ENABLE_XMP)
target_link_libraries(exiv2lib PRIVATE exiv2-xmp)
Expand Down

0 comments on commit 805fd80

Please sign in to comment.