vcpkg/ports/exiv2/vcpkg-cmake-wrapper.cmake

21 lines
635 B
CMake
Raw Normal View History

_find_package(${ARGS})
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
if(NOT @VCPKG_TARGET_IS_WINDOWS@)
find_package(Iconv REQUIRED)
endif()
2021-07-20 07:42:44 +08:00
if(@EXIV2_ENABLE_NLS@)
find_package(Intl REQUIRED)
endif()
if(TARGET exiv2lib)
if(NOT @VCPKG_TARGET_IS_WINDOWS@)
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES
Iconv::Iconv
)
endif()
2021-07-20 07:42:44 +08:00
if(@EXIV2_ENABLE_NLS@)
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${Intl_LIBRARIES})
2021-07-20 07:42:44 +08:00
endif()
endif()
endif()