aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-03-22 20:52:57 +0100
committerCraig Robbins <kde.psych@gmail.com>2015-03-23 13:43:18 +1000
commitc31c87adb5bacf26782362ea941bc137a6e6dec7 (patch)
tree5e2f1605f7d86e80adfd91dc6edce338011f8113 /cmake/Modules
parent5b5c4980112843e38d11cbc5c59d7c5de48da980 (diff)
downloadminetest-c31c87adb5bacf26782362ea941bc137a6e6dec7.tar.gz
minetest-c31c87adb5bacf26782362ea941bc137a6e6dec7.tar.bz2
minetest-c31c87adb5bacf26782362ea941bc137a6e6dec7.zip
Fix cmake po detection bug
Previously, cmake po detection would treat the "timestamp" file created by building for android as own language directory.
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/FindGettextLib.cmake1
1 files changed, 1 insertions, 0 deletions
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}/<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})