summaryrefslogtreecommitdiffstats
path: root/modules/TDEMacros.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-12-06 14:39:23 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-12-07 03:31:52 +0100
commit542f9054069f146c97f1bc20389516a1c179542d (patch)
tree272e49582bdfe3d772dc5a536bc222ab85e887a1 /modules/TDEMacros.cmake
parent1d96fed98e4e9d65038e6c7dd89b86a68b8f0785 (diff)
downloadtde-cmake-542f9054069f146c97f1bc20389516a1c179542d.tar.gz
tde-cmake-542f9054069f146c97f1bc20389516a1c179542d.zip
tde_create_translated_desktop: Show the full path of the source
desktop file when merging translations. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 28260f0078b016aac7f9b924c424bc1ae7d157fd)
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r--modules/TDEMacros.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 350e133..e2c1e52 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -1716,6 +1716,7 @@ macro( tde_create_translated_desktop )
# get a base name and a directory
get_filename_component( _basename ${_src} ABSOLUTE )
get_filename_component( _basedir ${_basename} PATH )
+ file( RELATIVE_PATH _sourcename "${CMAKE_SOURCE_DIR}" "${_basename}" )
file( RELATIVE_PATH _basename "${CMAKE_CURRENT_SOURCE_DIR}" "${_basename}" )
# prepare the binary directory according to source directory
@@ -1802,6 +1803,7 @@ macro( tde_create_translated_desktop )
OUTPUT ${_basename}
COMMAND ${CMAKE_COMMAND} -E env "LINGUAS=${_linguas}" ${MSGFMT_EXECUTABLE} --desktop --template ${_src} -d ${_po_dir} -o ${_basename} ${_keywords_arg}
DEPENDS ${_src}
+ COMMENT "Merging translations into ${_sourcename}"
)
else( )
@@ -1815,8 +1817,9 @@ macro( tde_create_translated_desktop )
# merge translations command
add_custom_command(
OUTPUT ${_basename}
- COMMAND ${INTLTOOL_MERGE_EXECUTABLE} -d ${_po_dir} ${_basename}.in ${_basename}
+ COMMAND ${INTLTOOL_MERGE_EXECUTABLE} -q -d ${_po_dir} ${_basename}.in ${_basename}
DEPENDS ${_src}
+ COMMENT "Merging translations into ${_sourcename}"
)
endif( )