summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-10-08 10:34:14 +0200
committerSlávek Banko <slavek.banko@axis.cz>2024-10-08 10:34:14 +0200
commit38529b8692626697965166c34f502c4e3fe19098 (patch)
treefe8585a2b71bf5de22031b340b9dfef7d4f52eab
parentfab0f33de434fbd293daf2142bfec04f403585a6 (diff)
downloadtde-cmake-38529b8692626697965166c34f502c4e3fe19098.tar.gz
tde-cmake-38529b8692626697965166c34f502c4e3fe19098.zip
tde_create_translated_desktop: Fix processing of files with spaces in name.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--modules/TDEMacros.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 3556731..ded84a8 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -2084,7 +2084,7 @@ macro( tde_create_translated_desktop )
# tde_setup_msgfmt( )
#endif( )
#if( "${MSGFMT_VERSION}" VERSION_LESS "0.19" )
- if( TRUE )
+ if( 1 )
if( NOT PERL_EXECUTABLE )
include( FindPerl )
endif( )
@@ -2204,6 +2204,7 @@ macro( tde_create_translated_desktop )
file( RELATIVE_PATH _target "${CMAKE_SOURCE_DIR}" "${_target}-translated" )
string( REPLACE "/" "+" _target "${_target}" )
string( REPLACE "@" "_" _target "${_target}" )
+ string( REPLACE " " "_" _target "${_target}" )
if( NOT TARGET ${_target} )