vcpkg/ports/exiv2/vcpkg-cmake-wrapper.cmake
Kai Pastor 9f73bc1a0e
Fix target_link_libraries on repeated inclusion of wrappers ()
* Fix repeated inclusion of wrappers

* x-add-version
2021-09-02 13:21:52 -07:00

17 lines
507 B
CMake

_find_package(${ARGS})
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
find_package(Iconv REQUIRED)
if(@EXIV2_ENABLE_NLS@)
find_package(Intl REQUIRED)
endif()
if(TARGET exiv2lib)
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES
Iconv::Iconv
)
if(@EXIV2_ENABLE_NLS@)
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${Intl_LIBRARIES})
endif()
endif()
endif()