From 9f5767da7c58d0ff40287c3744e1cbe959dff42c Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Mon, 31 Jul 2023 23:01:44 +0000 Subject: [PATCH] Link expat only for the build interface Signed-off-by: Ryan Friedman --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a9ddab4f56..a4d2e1f66b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 $) list(APPEND requires_private_list "expat") endif()