tde_create_translated_desktop: Add the ability to call for the same source

file installed in another location.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 8d4479fbcc)
r14.0.x
Slávek Banko 4 years ago
parent 95f07c5d48
commit a01b484d37
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1916,6 +1916,8 @@ macro( tde_create_translated_desktop )
file( RELATIVE_PATH _target "${CMAKE_SOURCE_DIR}" "${_target}" )
string( REPLACE "/" "+" _target "${_target}-translated" )
if( NOT TARGET ${_target} )
if( DESKTOP_MERGE_MSGFMT )
# Decide which translations to build; the ones selected in the
@ -1960,6 +1962,8 @@ macro( tde_create_translated_desktop )
# merge translations target
add_custom_target( "${_target}" ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_basename} )
endif()
else( )
# just write the original file without translations

Loading…
Cancel
Save