diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-12-06 14:39:23 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-12-07 03:30:54 +0100 |
commit | 28260f0078b016aac7f9b924c424bc1ae7d157fd (patch) | |
tree | 61b0826820ec6c7f16f020d7a038869b421884bc | |
parent | ae0ecf194bf51902652570df879579cb76f7db7f (diff) | |
download | tde-cmake-28260f0078b016aac7f9b924c424bc1ae7d157fd.tar.gz tde-cmake-28260f0078b016aac7f9b924c424bc1ae7d157fd.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>
-rw-r--r-- | modules/TDEMacros.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 80cd4c5..389c5e3 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1903,6 +1903,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 @@ -1989,6 +1990,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( ) @@ -2002,8 +2004,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( ) |