Skip to content

Commit

Permalink
The CI is using cmake 3.10. I've back-ported code from main/src/CMake…
Browse files Browse the repository at this point in the history
…Lists.txt
  • Loading branch information
clanmills committed Aug 12, 2021
1 parent e899a95 commit 962ef36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ set_target_properties( exiv2lib_int PROPERTIES
COMPILE_DEFINITIONS exiv2lib_EXPORTS
)

target_link_libraries(exiv2lib_int PRIVATE ZLIB::ZLIB)
# NOTE: Cannot use target_link_libraries on OBJECT libraries with old versions of CMake
target_include_directories(exiv2lib_int PRIVATE ${ZLIB_INCLUDE_DIR})
target_include_directories(exiv2lib SYSTEM PRIVATE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/xmpsdk/include>
)
Expand Down

0 comments on commit 962ef36

Please sign in to comment.