diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-04-14 03:08:54 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-04-14 03:09:22 +0200 |
commit | a4263ae0e1af09ddda4d18f9dacb8c72761a9304 (patch) | |
tree | a8936d1d19273e748e0056fd28c91171a72d7b75 | |
parent | 1994b808819fd74446cb8f1a0491b3e10244f463 (diff) | |
download | tde-cmake-a4263ae0e1af09ddda4d18f9dacb8c72761a9304.tar.gz tde-cmake-a4263ae0e1af09ddda4d18f9dacb8c72761a9304.zip |
Fix characters disallowed for target name in tde_create_translation
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit beb73fe2399ca6ca9db86fa9dde1015ae4866efa)
-rw-r--r-- | modules/TDEMacros.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 5d76e32..49eded3 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1254,6 +1254,7 @@ macro( tde_create_translation ) get_filename_component( _out ${_src} NAME_WE ) endif( ) + string( REPLACE "@" "_" _target ${_real_lang} ) set( _out_filename "${_out}-${_real_lang}.mo" ) set( _install_filename "${_out}.mo" ) @@ -1261,7 +1262,7 @@ macro( tde_create_translation ) OUTPUT ${_out_filename} COMMAND ${MSGFMT_EXECUTABLE} ${_src} -o ${_out_filename} DEPENDS ${_src} ) - add_custom_target( "${_out}-${_real_lang}-translation" ALL DEPENDS ${_out_filename} ) + add_custom_target( "${_out}-${_target}-translation" ALL DEPENDS ${_out_filename} ) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${_out_filename} RENAME ${_install_filename} DESTINATION ${_dest} ) endforeach( ) |