summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-05-25 15:40:11 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-05-25 15:40:29 +0200
commit03cdb8caf63ab988b84ba9c830ae87ae2c7815ae (patch)
tree59e1b0b886f71b9001c5a3266150ecdccc534a6f
parent8fbb3fc156b2812aa1702abc6db056dae6068f72 (diff)
downloadtde-cmake-03cdb8caf63ab988b84ba9c830ae87ae2c7815ae.tar.gz
tde-cmake-03cdb8caf63ab988b84ba9c830ae87ae2c7815ae.zip
tde_create_translated_desktop: Fix characters not permitted for target name.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 870ade6418da040cf9db963adab5034c5bd169a7)
-rw-r--r--modules/TDEMacros.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index e16d7b0..616cb79 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -1989,8 +1989,9 @@ macro( tde_create_translated_desktop )
# prepare a full name for the target
get_filename_component( _target ${_basename} ABSOLUTE )
- file( RELATIVE_PATH _target "${CMAKE_SOURCE_DIR}" "${_target}" )
- string( REPLACE "/" "+" _target "${_target}-translated" )
+ file( RELATIVE_PATH _target "${CMAKE_SOURCE_DIR}" "${_target}-translated" )
+ string( REPLACE "/" "+" _target "${_target}" )
+ string( REPLACE "@" "_" _target "${_target}" )
if( NOT TARGET ${_target} )