[gettext-libintl] Link CoreFoundation on apple (#38859)

Cherry-picked from https://github.com/microsoft/vcpkg/pull/38658.
This commit is contained in:
Kai Pastor 2024-05-25 04:35:34 +02:00 committed by GitHub
parent 91ce5065d7
commit 13c141f489
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 1 deletions

View File

@ -14,4 +14,10 @@ if(Intl_FOUND AND Intl_LIBRARIES)
set_property(TARGET Intl::Intl APPEND PROPERTY INTERFACE_LINK_LIBRARIES $<LINK_ONLY:Iconv::Iconv>)
endif()
endif()
if(APPLE)
list(APPEND Intl_LIBRARIES "-framework CoreFoundation")
if(TARGET Intl::Intl) # Since CMake 3.20
set_property(TARGET Intl::Intl APPEND PROPERTY INTERFACE_LINK_LIBRARIES "$<LINK_ONLY:-framework CoreFoundation>")
endif()
endif()
endif()

View File

@ -1,6 +1,7 @@
{
"name": "gettext-libintl",
"version": "0.22.5",
"port-version": 1,
"description": "The libintl C library from GNU gettext-runtime.",
"homepage": "https://www.gnu.org/software/gettext/",
"license": "LGPL-2.1-or-later",

View File

@ -3014,7 +3014,7 @@
},
"gettext-libintl": {
"baseline": "0.22.5",
"port-version": 0
"port-version": 1
},
"gettimeofday": {
"baseline": "2017-10-14",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ac89519d5ec11430978a4e45619befb7a1c4a062",
"version": "0.22.5",
"port-version": 1
},
{
"git-tree": "8a3f80e31783a834e0fdc9d231136651cb2f08b4",
"version": "0.22.5",