From 9838379ded9637fc9284974b7b81510ef03490e5 Mon Sep 17 00:00:00 2001 From: Kevin Backhouse Date: Sat, 21 Aug 2021 11:19:03 +0100 Subject: [PATCH] Fix Windows build --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3a300ff98d..9c3d5f7b55 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -173,6 +173,9 @@ target_include_directories(exiv2lib SYSTEM PRIVATE $ ) +target_include_directories(exiv2lib_int PRIVATE ${EXPAT_INCLUDE_DIR}) +target_link_libraries(exiv2lib_int PRIVATE ${EXPAT_LIBRARIES}) + if (EXIV2_ENABLE_XMP) target_link_libraries(exiv2lib PRIVATE exiv2-xmp) elseif(EXIV2_ENABLE_EXTERNAL_XMP)