Skip to content

Commit 9f5767d

Browse files
Ryanf55neheb
authored andcommitted
Link expat only for the build interface
Signed-off-by: Ryan Friedman <[email protected]>
1 parent b832728 commit 9f5767d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ target_include_directories(exiv2lib SYSTEM PRIVATE
184184

185185
if (EXIV2_ENABLE_XMP OR EXIV2_ENABLE_EXTERNAL_XMP)
186186
target_include_directories(exiv2lib PRIVATE ${EXPAT_INCLUDE_DIR})
187-
target_link_libraries(exiv2lib PRIVATE EXPAT::EXPAT)
187+
target_link_libraries(exiv2lib PRIVATE $<BUILD_INTERFACE:EXPAT::EXPAT>)
188188
list(APPEND requires_private_list "expat")
189189
endif()
190190

0 commit comments

Comments
 (0)