2019-03-29 09:46:03 +11:00
|
|
|
_find_package(${ARGS})
|
|
|
|
|
|
|
|
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
2022-10-25 08:04:03 +08:00
|
|
|
if(NOT @VCPKG_TARGET_IS_WINDOWS@)
|
|
|
|
find_package(Iconv REQUIRED)
|
|
|
|
endif()
|
2021-07-20 01:42:44 +02:00
|
|
|
if(@EXIV2_ENABLE_NLS@)
|
|
|
|
find_package(Intl REQUIRED)
|
|
|
|
endif()
|
2019-03-29 09:46:03 +11:00
|
|
|
if(TARGET exiv2lib)
|
2022-10-25 08:04:03 +08:00
|
|
|
if(NOT @VCPKG_TARGET_IS_WINDOWS@)
|
|
|
|
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES
|
|
|
|
Iconv::Iconv
|
|
|
|
)
|
|
|
|
endif()
|
2021-07-20 01:42:44 +02:00
|
|
|
if(@EXIV2_ENABLE_NLS@)
|
2021-09-02 22:21:52 +02:00
|
|
|
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${Intl_LIBRARIES})
|
2021-07-20 01:42:44 +02:00
|
|
|
endif()
|
2019-03-29 09:46:03 +11:00
|
|
|
endif()
|
|
|
|
endif()
|