summaryrefslogtreecommitdiff
path: root/cmake/Modules/FindGettextLib.cmake
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-08-05 11:22:13 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-08-05 11:22:13 +0300
commit64a6da3e45838a6f764777728736dfa0f6678778 (patch)
tree570cfe68e9036f77ef10f6ca57c3ca489cbb393f /cmake/Modules/FindGettextLib.cmake
parent5f8809e425ba814f102c4387b6bf0cf323bd96c5 (diff)
parentdd9909a574514f59eb527db682a4e8d85350ead9 (diff)
downloadminetest-64a6da3e45838a6f764777728736dfa0f6678778.tar.gz
minetest-64a6da3e45838a6f764777728736dfa0f6678778.tar.bz2
minetest-64a6da3e45838a6f764777728736dfa0f6678778.zip
merged delta and c55
Diffstat (limited to 'cmake/Modules/FindGettextLib.cmake')
-rw-r--r--cmake/Modules/FindGettextLib.cmake21
1 files changed, 5 insertions, 16 deletions
diff --git a/cmake/Modules/FindGettextLib.cmake b/cmake/Modules/FindGettextLib.cmake
index b99fd33b8..18935eaad 100644
--- a/cmake/Modules/FindGettextLib.cmake
+++ b/cmake/Modules/FindGettextLib.cmake
@@ -16,21 +16,6 @@ FIND_PROGRAM(GETTEXT_MSGFMT
PATHS "${CUSTOM_GETTEXT_PATH}/bin"
DOC "path to msgfmt")
-FIND_PROGRAM(GETTEXT_MSGMERGE
- NAMES msgmerge
- PATHS "${CUSTOM_GETTEXT_PATH}/bin"
- DOC "path to msgmerge")
-
-FIND_PROGRAM(GETTEXT_MSGEN
- NAMES msgen
- PATHS "${CUSTOM_GETTEXT_PATH}/bin"
- DOC "path to msgen")
-
-FIND_PROGRAM(GETTEXT_EXTRACT
- NAMES xgettext
- PATHS "${CUSTOM_GETTEXT_PATH}/bin"
- DOC "path to xgettext")
-
# 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
@@ -71,10 +56,14 @@ ENDIF()
IF(GETTEXT_FOUND)
SET(GETTEXT_PO_PATH ${CMAKE_SOURCE_DIR}/po)
SET(GETTEXT_MO_BUILD_PATH ${CMAKE_BINARY_DIR}/locale/<locale>/LC_MESSAGES)
- SET(GETTEXT_MO_DEST_PATH locale/<locale>/LC_MESSAGES)
+ SET(GETTEXT_MO_DEST_PATH ${DATADIR}/../locale/<locale>/LC_MESSAGES)
FILE(GLOB GETTEXT_AVAILABLE_LOCALES RELATIVE ${GETTEXT_PO_PATH} "${GETTEXT_PO_PATH}/*")
+ LIST(REMOVE_ITEM GETTEXT_AVAILABLE_LOCALES minetest.pot)
MACRO(SET_MO_PATHS _buildvar _destvar _locale)
STRING(REPLACE "<locale>" ${_locale} ${_buildvar} ${GETTEXT_MO_BUILD_PATH})
STRING(REPLACE "<locale>" ${_locale} ${_destvar} ${GETTEXT_MO_DEST_PATH})
ENDMACRO(SET_MO_PATHS)
+ELSE()
+ SET(GETTEXT_INCLUDE_DIR "")
+ SET(GETTEXT_LIBRARY "")
ENDIF()