summaryrefslogtreecommitdiffstats
path: root/modules/TDEL10n.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-09 02:55:00 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-09 02:55:57 +0100
commitebe1ddc721494cdfe14a93f38f49eec7d048c048 (patch)
treeb726fc920b34b39ad5933f04c76a33975cf25839 /modules/TDEL10n.cmake
parent3779b941ef37adffa69274a53e321d2a78fb5f87 (diff)
downloadtde-cmake-ebe1ddc721494cdfe14a93f38f49eec7d048c048.tar.gz
tde-cmake-ebe1ddc721494cdfe14a93f38f49eec7d048c048.zip
Update TDEL10n module
+ Allow missed keyword CATALOG, if the catalog name is the first argument. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'modules/TDEL10n.cmake')
-rw-r--r--modules/TDEL10n.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/TDEL10n.cmake b/modules/TDEL10n.cmake
index 7af4a1b..d0b3b89 100644
--- a/modules/TDEL10n.cmake
+++ b/modules/TDEL10n.cmake
@@ -127,7 +127,7 @@ endfunction( )
#####
##### Syntax:
##### tde_l10n_create_template(
-##### CATALOG file_name
+##### [CATALOG] file_name
##### [SOURCES source_spec [source_spec]]
##### [EXCLUDES regex [regex]]
##### [KEYWORDS keyword [keyword]]
@@ -176,9 +176,9 @@ macro( tde_l10n_create_template )
unset( _dest )
unset( _keywords )
unset( _attributes )
- unset( _directive )
- unset( _var )
unset( _pot )
+ unset( _directive )
+ set( _var _catalog )
foreach( _arg ${ARGN} )