summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2021-05-25 15:40:11 +0200
committerSlávek Banko <[email protected]>2021-06-07 01:37:59 +0200
commit8974c265ae95037f72601a3a9fae753f0d77cf91 (patch)
treedd728178c67905ff6c215a1c685beea3181f0851
parentaa076f143e5b16c0aa8fd80df5cd9c94cdd31195 (diff)
downloadtde-cmake-8974c265ae95037f72601a3a9fae753f0d77cf91.tar.gz
tde-cmake-8974c265ae95037f72601a3a9fae753f0d77cf91.zip
tde_create_translated_desktop: Fix characters not permitted for target name.
Signed-off-by: Slávek Banko <[email protected]> (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 610c100..82effbd 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -1802,8 +1802,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} )