aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/StaticBuild.cmake
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2020-01-30 14:23:24 +0100
committerPierre Ossman <ossman@cendio.se>2020-01-30 14:23:24 +0100
commit57da16bbcf0584603a3e77382f775b76eb6f9bcf (patch)
tree85768b2c41e010981248e3f738e49454e55a3d4d /cmake/StaticBuild.cmake
parent6d39667c4221a094eaa03152f0ce350f690c897d (diff)
downloadtigervnc-57da16bbcf0584603a3e77382f775b76eb6f9bcf.tar.gz
tigervnc-57da16bbcf0584603a3e77382f775b76eb6f9bcf.zip
Include Carbon when statically linking gettext on macOS
As gettext needs some stuff from Carbon and we don't want to rely on it being pulled in as a side effect.
Diffstat (limited to 'cmake/StaticBuild.cmake')
-rw-r--r--cmake/StaticBuild.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/StaticBuild.cmake b/cmake/StaticBuild.cmake
index e539619e..d8cdbe6e 100644
--- a/cmake/StaticBuild.cmake
+++ b/cmake/StaticBuild.cmake
@@ -24,6 +24,9 @@ if(BUILD_STATIC)
# gettext is included in libc on many unix systems
if(NOT LIBC_HAS_DGETTEXT)
set(GETTEXT_LIBRARIES "-Wl,-Bstatic -lintl -liconv -Wl,-Bdynamic")
+ if(APPLE)
+ set(GETTEXT_LIBRARIES "${GETTEXT_LIBRARIES} -framework Carbon")
+ endif()
endif()
if(GNUTLS_FOUND)