2023-08-18 05:29:08 +08:00
|
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2023-11-16 09:02:47 +08:00
|
|
|
index 85dd6cd..4967d8a 100644
|
2023-08-18 05:29:08 +08:00
|
|
|
--- a/src/CMakeLists.txt
|
|
|
|
+++ b/src/CMakeLists.txt
|
2023-11-16 09:02:47 +08:00
|
|
|
@@ -178,7 +178,7 @@ target_include_directories(exiv2lib SYSTEM PRIVATE
|
2023-08-18 05:29:08 +08:00
|
|
|
|
|
|
|
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 expat::expat)
|
|
|
|
list(APPEND requires_private_list "expat")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
diff --git a/xmpsdk/CMakeLists.txt b/xmpsdk/CMakeLists.txt
|
2023-11-16 09:02:47 +08:00
|
|
|
index 87c59c0..d2f23e6 100644
|
2023-08-18 05:29:08 +08:00
|
|
|
--- a/xmpsdk/CMakeLists.txt
|
|
|
|
+++ b/xmpsdk/CMakeLists.txt
|
2023-11-16 09:02:47 +08:00
|
|
|
@@ -31,6 +31,7 @@ target_include_directories(exiv2-xmp SYSTEM
|
|
|
|
${PROJECT_SOURCE_DIR}/xmpsdk/include
|
|
|
|
${EXPAT_INCLUDE_DIRS}
|
2023-08-18 05:29:08 +08:00
|
|
|
)
|
2023-11-16 09:02:47 +08:00
|
|
|
+target_link_libraries(exiv2-xmp PRIVATE expat::expat)
|
2023-08-18 05:29:08 +08:00
|
|
|
|
2023-11-16 09:02:47 +08:00
|
|
|
# Prevent a denial-service-attack related to XML entity expansion
|
|
|
|
# ("billion laughs attack").
|