From: Pierre Ossman Date: Thu, 30 Jan 2020 13:23:24 +0000 (+0100) Subject: Include Carbon when statically linking gettext on macOS X-Git-Tag: v1.10.90~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=57da16bbcf0584603a3e77382f775b76eb6f9bcf;p=tigervnc.git 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. --- 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)