projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43b6ca0
)
Gettext fix for *BSD - require special linkage as glibc is not used
author
q66
<quaker66@gmail.com>
Thu, 11 Aug 2011 09:04:22 +0000
(11:04 +0200)
committer
q66
<quaker66@gmail.com>
Thu, 11 Aug 2011 09:19:05 +0000
(11:19 +0200)
cmake/Modules/FindGettextLib.cmake
patch
|
blob
|
history
diff --git
a/cmake/Modules/FindGettextLib.cmake
b/cmake/Modules/FindGettextLib.cmake
index 18935eaadb3e06cb6a6be009256d0bd6a48c06b9..5779b6b6479324f247106fb713964d9d73288d68 100644
(file)
--- 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()