From: est31 Date: Sun, 22 Mar 2015 19:52:57 +0000 (+0100) Subject: Fix cmake po detection bug X-Git-Tag: 0.4.13~444 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c31c87adb5bacf26782362ea941bc137a6e6dec7;p=oweals%2Fminetest.git Fix cmake po detection bug Previously, cmake po detection would treat the "timestamp" file created by building for android as own language directory. --- diff --git a/cmake/Modules/FindGettextLib.cmake b/cmake/Modules/FindGettextLib.cmake index c6f731e04..5c992f0fa 100644 --- a/cmake/Modules/FindGettextLib.cmake +++ b/cmake/Modules/FindGettextLib.cmake @@ -74,6 +74,7 @@ IF(GETTEXT_FOUND) SET(GETTEXT_MO_DEST_PATH ${LOCALEDIR}//LC_MESSAGES) FILE(GLOB GETTEXT_AVAILABLE_LOCALES RELATIVE ${GETTEXT_PO_PATH} "${GETTEXT_PO_PATH}/*") LIST(REMOVE_ITEM GETTEXT_AVAILABLE_LOCALES minetest.pot) + LIST(REMOVE_ITEM GETTEXT_AVAILABLE_LOCALES timestamp) MACRO(SET_MO_PATHS _buildvar _destvar _locale) STRING(REPLACE "" ${_locale} ${_buildvar} ${GETTEXT_MO_BUILD_PATH}) STRING(REPLACE "" ${_locale} ${_destvar} ${GETTEXT_MO_DEST_PATH})