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

12 lines
393 B
CMake
Raw Normal View History

_find_package(${ARGS})
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
find_package(unofficial-iconv CONFIG REQUIRED)
find_package(unofficial-gettext CONFIG REQUIRED)
if(TARGET exiv2lib)
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES
unofficial::iconv::libiconv
unofficial::gettext::libintl)
endif()
endif()