summaryrefslogtreecommitdiffstats
path: root/modules/TDEMacros.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-02 02:27:06 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-02 02:27:06 +0100
commit30ce93d11ae8b417599289c19aa33364c0cfa2ce (patch)
tree5cdabd21227a576ff9266ab22dc9339e5bcd1e44 /modules/TDEMacros.cmake
parente5b3a250fcbddc2d153832a386a7b67b340b8dac (diff)
downloadtde-cmake-30ce93d11ae8b417599289c19aa33364c0cfa2ce.tar.gz
tde-cmake-30ce93d11ae8b417599289c19aa33364c0cfa2ce.zip
Fix small typing errors in the tde_create_translation macro.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r--modules/TDEMacros.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index fc6e99e..2fa53ec 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -1361,9 +1361,9 @@ macro( tde_create_translation )
set( _directive 1 )
endif( )
- # found directive "DESTINATION"
+ # found directive "OUTPUT_NAME"
if( "+${_arg}" STREQUAL "+OUTPUT_NAME" )
- unset( _proj )
+ unset( _out_name )
set( _var _out_name )
set( _directive 1 )
endif( )
@@ -1393,11 +1393,11 @@ macro( tde_create_translation )
if( NOT _lang STREQUAL "auto")
set( _real_lang ${_lang} )
-
+
if( NOT _dest )
set( _dest "${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES" )
endif( )
-
+
# OUTPUT_NAME can only be used if we have only one file
list( LENGTH _srcs _srcs_num)
if( _out_name AND _srcs_num GREATER 1 )
@@ -1416,7 +1416,7 @@ macro( tde_create_translation )
get_filename_component( _src ${_src} ABSOLUTE )
if( _out_name )
- set( _out ${_out_name} )
+ set( _out ${_out_name} )
if( _lang STREQUAL "auto" )
get_filename_component( _real_lang ${_src} NAME_WE )
set( _dest "${LOCALE_INSTALL_DIR}/${_real_lang}/LC_MESSAGES" )