]> git.lizzy.rs Git - minetest.git/blobdiff - cmake/Modules/FindGettextLib.cmake
OS X compatibility fixes
[minetest.git] / cmake / Modules / FindGettextLib.cmake
index bc7ea367f493db85ef546c632923d77be88549bb..c6f731e04e3b6f866508bbb1ca90be5eae8d7806 100644 (file)
@@ -16,6 +16,18 @@ FIND_PROGRAM(GETTEXT_MSGFMT
        PATHS "${CUSTOM_GETTEXT_PATH}/bin"
        DOC "path to msgfmt")
 
+if(APPLE)
+       FIND_LIBRARY(GETTEXT_LIBRARY
+               NAMES libintl.a
+               PATHS "${CUSTOM_GETTEXT_PATH}/lib"
+               DOC "gettext *intl*.lib")
+
+       FIND_LIBRARY(ICONV_LIBRARY
+               NAMES libiconv.dylib
+               PATHS "/usr/lib"
+               DOC "iconv lib")
+endif(APPLE)
+
 # modern Linux, as well as Mac, seem to not need require special linking
 # they do not because gettext is part of glibc
 # TODO check the requirements on other BSDs and older Linux