Skip to content

Commit

Permalink
[gettext-libintl] Link CoreFoundation on apple (microsoft#38859)
Browse files Browse the repository at this point in the history
Cherry-picked from microsoft#38658.
  • Loading branch information
dg0yt authored May 25, 2024
1 parent 91ce506 commit 13c141f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ports/gettext-libintl/vcpkg-cmake-wrapper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
1 change: 1 addition & 0 deletions ports/gettext-libintl/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3014,7 +3014,7 @@
},
"gettext-libintl": {
"baseline": "0.22.5",
"port-version": 0
"port-version": 1
},
"gettimeofday": {
"baseline": "2017-10-14",
Expand Down
5 changes: 5 additions & 0 deletions versions/g-/gettext-libintl.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ac89519d5ec11430978a4e45619befb7a1c4a062",
"version": "0.22.5",
"port-version": 1
},
{
"git-tree": "8a3f80e31783a834e0fdc9d231136651cb2f08b4",
"version": "0.22.5",
Expand Down

0 comments on commit 13c141f

Please sign in to comment.