tde_create_translated_desktop: Fix characters not permitted for target name.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/71/head
Slávek Banko 4 years ago
parent dc88ab2c2c
commit 870ade6418
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1989,8 +1989,9 @@ macro( tde_create_translated_desktop )
# prepare a full name for the target # prepare a full name for the target
get_filename_component( _target ${_basename} ABSOLUTE ) get_filename_component( _target ${_basename} ABSOLUTE )
file( RELATIVE_PATH _target "${CMAKE_SOURCE_DIR}" "${_target}" ) file( RELATIVE_PATH _target "${CMAKE_SOURCE_DIR}" "${_target}-translated" )
string( REPLACE "/" "+" _target "${_target}-translated" ) string( REPLACE "/" "+" _target "${_target}" )
string( REPLACE "@" "_" _target "${_target}" )
if( NOT TARGET ${_target} ) if( NOT TARGET ${_target} )

Loading…
Cancel
Save