mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[exiv2] Adding platform restrictions to Dependencies libiconv (#27370)
* [exiv2] Adding platform restrictions to Dependencies libiconv * Add license
This commit is contained in:
parent
cbb1604614
commit
bdb2ab9ea6
@ -1,14 +1,18 @@
|
||||
_find_package(${ARGS})
|
||||
|
||||
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
||||
find_package(Iconv REQUIRED)
|
||||
if(NOT @VCPKG_TARGET_IS_WINDOWS@)
|
||||
find_package(Iconv REQUIRED)
|
||||
endif()
|
||||
if(@EXIV2_ENABLE_NLS@)
|
||||
find_package(Intl REQUIRED)
|
||||
endif()
|
||||
if(TARGET exiv2lib)
|
||||
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES
|
||||
Iconv::Iconv
|
||||
)
|
||||
if(NOT @VCPKG_TARGET_IS_WINDOWS@)
|
||||
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES
|
||||
Iconv::Iconv
|
||||
)
|
||||
endif()
|
||||
if(@EXIV2_ENABLE_NLS@)
|
||||
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${Intl_LIBRARIES})
|
||||
endif()
|
||||
|
@ -1,12 +1,16 @@
|
||||
{
|
||||
"name": "exiv2",
|
||||
"version": "0.27.5",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "Image metadata library and tools",
|
||||
"homepage": "https://www.exiv2.org",
|
||||
"license": "GPL-2.0",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"libiconv",
|
||||
{
|
||||
"name": "libiconv",
|
||||
"platform": "!windows"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
|
@ -2190,7 +2190,7 @@
|
||||
},
|
||||
"exiv2": {
|
||||
"baseline": "0.27.5",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"expat": {
|
||||
"baseline": "2.4.9",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "99378f0a1c25d699a1b56f337dbe1a4289dd20fa",
|
||||
"version": "0.27.5",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "5e7341b739d7b05fbb40492158b01b8fa9fcdb74",
|
||||
"version": "0.27.5",
|
||||
|
Loading…
x
Reference in New Issue
Block a user