aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/FindGettextLib.cmake
diff options
context:
space:
mode:
authorMartin Doege <mdoege@compuserve.com>2014-06-26 20:30:22 +0200
committersapier <Sapier at GMX dot net>2014-06-29 17:27:33 +0200
commitc410e9182d322a8c095ef94fbadf4d8f541e6b98 (patch)
treeb4626b67e9f6f10b43395013c7a275037aa463a3 /cmake/Modules/FindGettextLib.cmake
parentee7af21e411d5d43ba67f4b67603f72e62b0570d (diff)
downloadminetest-c410e9182d322a8c095ef94fbadf4d8f541e6b98.tar.gz
minetest-c410e9182d322a8c095ef94fbadf4d8f541e6b98.tar.bz2
minetest-c410e9182d322a8c095ef94fbadf4d8f541e6b98.zip
OS X compatibility fixes
Diffstat (limited to 'cmake/Modules/FindGettextLib.cmake')
-rw-r--r--cmake/Modules/FindGettextLib.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/Modules/FindGettextLib.cmake b/cmake/Modules/FindGettextLib.cmake
index bc7ea367f..c6f731e04 100644
--- a/cmake/Modules/FindGettextLib.cmake
+++ b/cmake/Modules/FindGettextLib.cmake
@@ -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