Fix cmake po detection bug
authorest31 <MTest31@outlook.com>
Sun, 22 Mar 2015 19:52:57 +0000 (20:52 +0100)
committerCraig Robbins <kde.psych@gmail.com>
Mon, 23 Mar 2015 03:43:18 +0000 (13:43 +1000)
Previously, cmake po detection would treat the "timestamp" file created by building for android as own language directory.

cmake/Modules/FindGettextLib.cmake

index c6f731e04e3b6f866508bbb1ca90be5eae8d7806..5c992f0faefe76729cf3b6d5e84ef0ec57e903d8 100644 (file)
@@ -74,6 +74,7 @@ IF(GETTEXT_FOUND)
        SET(GETTEXT_MO_DEST_PATH ${LOCALEDIR}/<locale>/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>" ${_locale} ${_buildvar} ${GETTEXT_MO_BUILD_PATH})
                STRING(REPLACE "<locale>" ${_locale} ${_destvar} ${GETTEXT_MO_DEST_PATH})