]> source.dussan.org Git - tigervnc.git/commitdiff
Include Carbon when statically linking gettext on macOS
authorPierre Ossman <ossman@cendio.se>
Thu, 30 Jan 2020 13:23:24 +0000 (14:23 +0100)
committerPierre Ossman <ossman@cendio.se>
Thu, 30 Jan 2020 13:23:24 +0000 (14:23 +0100)
As gettext needs some stuff from Carbon and we don't want to rely on it
being pulled in as a side effect.

cmake/StaticBuild.cmake

index e539619e41472344ec9feffa9d0a6968bea81789..d8cdbe6e212aa1ae58bc4391306422b62ef10e4c 100644 (file)
@@ -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)