From 074d73987483583e42b9ced19d8c19a41f411a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 2 Dec 2018 02:27:06 +0100 Subject: [PATCH] Fix small typing errors in the tde_create_translation macro. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 30ce93d11ae8b417599289c19aa33364c0cfa2ce) --- modules/TDEMacros.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 9a23fc9..08640ea 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1211,9 +1211,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( ) @@ -1243,11 +1243,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 ) @@ -1266,7 +1266,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" )