1
0
Fork 0

Fix build issue when a translation file is missing

Only try to build XLF files we actually found in the source dir.
This commit is contained in:
James Turner 2020-05-12 13:36:28 +01:00
parent 620a02bad3
commit 05d455debc

View file

@ -31,6 +31,12 @@ if (${do_translate})
# qm generation and installation
foreach(LANG ${LANGUAGES})
# avoid issue if the FGData we found is a different version, and a translation is
# missing: just skip it
if (NOT EXISTS ${TRANSLATIONS_SRC_DIR}/${LANG}/FlightGear-Qt.xlf)
continue()
endif()
set(out_file "${PROJECT_BINARY_DIR}/FlightGear_${LANG}.qm")
add_custom_command(
OUTPUT ${out_file}