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>
pull/57/head
Slávek Banko 4 years ago
parent 8cf356884f
commit 8d4479fbcc
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