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:11 +0200
commit870ade6418da040cf9db963adab5034c5bd169a7 (patch)
tree90240d0cd460e1ed523087a3e43353edf17387d8
parentdc88ab2c2ccccf037e278abd18278d8c10019e11 (diff)
downloadcmake-870ade64.tar.gz
cmake-870ade64.zip
tde_create_translated_desktop: Fix characters not permitted for target name.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--modules/TDEMacros.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 411f38a..0318890 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} )