summaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-08-11 12:32:36 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-08-11 12:32:36 +0300
commit69fca4f3cb59b3c3c5788830807d241fc8a0fc9a (patch)
treea72364abcca170bf0389785f37f6ef079d7bb84d /cmake/Modules
parent34492ce4803982a0aab84be88eab24b6ff0b4c3b (diff)
parentf6ed45fc20876fb01027446a1c3960658c030870 (diff)
downloadminetest-69fca4f3cb59b3c3c5788830807d241fc8a0fc9a.tar.gz
minetest-69fca4f3cb59b3c3c5788830807d241fc8a0fc9a.tar.bz2
minetest-69fca4f3cb59b3c3c5788830807d241fc8a0fc9a.zip
Merged some FreeBSD fixes
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/FindGettextLib.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/Modules/FindGettextLib.cmake b/cmake/Modules/FindGettextLib.cmake
index 18935eaad..5779b6b64 100644
--- a/cmake/Modules/FindGettextLib.cmake
+++ b/cmake/Modules/FindGettextLib.cmake
@@ -41,7 +41,6 @@ IF (WIN32)
DOC "gettext *iconv*.lib")
ENDIF(WIN32)
-
IF(GETTEXT_INCLUDE_DIR AND GETTEXT_MSGFMT)
IF (WIN32)
# in the Win32 case check also for the extra linking requirements
@@ -49,6 +48,10 @@ IF(GETTEXT_INCLUDE_DIR AND GETTEXT_MSGFMT)
SET(GETTEXT_FOUND TRUE)
ENDIF()
ELSE(WIN32)
+ # *BSD variants require special linkage as they don't use glibc
+ IF(${CMAKE_SYSTEM_NAME} MATCHES "BSD")
+ SET(GETTEXT_LIBRARY "intl")
+ ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "BSD")
SET(GETTEXT_FOUND TRUE)
ENDIF(WIN32)
ENDIF()