From 5a0097103324dbe4754ed420fbdf9b33e8b12b0c Mon Sep 17 00:00:00 2001 From: Bernd Wachter Date: Wed, 8 Apr 2009 06:01:03 +0200 Subject: Added switch to disable building locales Only build locales if gettext is available Add a workaround for a cmake-bug in translations target --- po/CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'po') diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 1c634a89..93d94f3a 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -1,4 +1,13 @@ FIND_PACKAGE(Gettext REQUIRED) FILE(GLOB POFILES *.po) -GETTEXT_CREATE_TRANSLATIONS(tmw.pot ${POFILES}) \ No newline at end of file +GETTEXT_CREATE_TRANSLATIONS(tmw.pot ${POFILES}) +# This is an ugly hack to enable building of translations with +# the default target due to a bug in GETTEXT_CREATE_TRANSLATIONS. +# The bug has been fixed in recent CMake 2.6.3. Once 2.6.3 is widely +# deployed the above line should be changed to: +# GETTEXT_CREATE_TRANSLATIONS(tmw.pot ALL ${POFILES}) +# and the following two lines removed +# 2009-04-08 Bernd Wachter +ADD_CUSTOM_TARGET(transfix ALL) +ADD_DEPENDENCIES(transfix translations) -- cgit v1.2.3-70-g09d2