From 73277a4d7506fc7138a2d42b70bde6bb4b71d268 Mon Sep 17 00:00:00 2001 From: Ray-V Date: Tue, 22 Jun 2021 10:32:10 +0100 Subject: [PATCH] Add test of BUILD_TRANSLATIONS for setting _translations Signed-off-by: Ray-V --- modules/TDEMacros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index b1d7aaf..a4c1b4c 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -2023,9 +2023,9 @@ macro( tde_create_translated_desktop ) file( MAKE_DIRECTORY "${_out_dir}" ) endif( ) - # are there any translations available? + # are there any translations available, and required? unset( _translations ) - if( EXISTS "${_po_dir}" AND IS_DIRECTORY "${_po_dir}" ) + if( EXISTS "${_po_dir}" AND IS_DIRECTORY "${_po_dir}" AND BUILD_TRANSLATIONS ) file( GLOB _translations RELATIVE "${_po_dir}" "${_po_dir}/*.po" ) endif( )