diff options
author | q66 <quaker66@gmail.com> | 2011-08-11 11:04:22 +0200 |
---|---|---|
committer | q66 <quaker66@gmail.com> | 2011-08-11 11:19:05 +0200 |
commit | e81ff1e83356a35a03e1e83a926a92845a2fc3fc (patch) | |
tree | c42f150a7658291d8119d8fda1e5f2a579d97b66 /cmake/Modules | |
parent | 43b6ca0d14f784657cbbe106aa0f51e2300d30e0 (diff) | |
download | minetest-e81ff1e83356a35a03e1e83a926a92845a2fc3fc.tar.gz minetest-e81ff1e83356a35a03e1e83a926a92845a2fc3fc.tar.bz2 minetest-e81ff1e83356a35a03e1e83a926a92845a2fc3fc.zip |
Gettext fix for *BSD - require special linkage as glibc is not used
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/FindGettextLib.cmake | 5 |
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() |