From 782742a731c20f146888d28b97ed8fe666c2f6be Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 25 Mar 2019 00:20:21 -0700 Subject: [PATCH] Qt: Only include qtbase translations if present --- src/platform/qt/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/platform/qt/CMakeLists.txt b/src/platform/qt/CMakeLists.txt index a910a97c8..f467b4f85 100644 --- a/src/platform/qt/CMakeLists.txt +++ b/src/platform/qt/CMakeLists.txt @@ -268,7 +268,10 @@ if(Qt5LinguistTools_FOUND) foreach(TS ${TS_FILES}) get_filename_component(TS ${TS} NAME) string(REGEX REPLACE "${BINARY_NAME}-(.*).ts$" "qtbase_\\1.qm" QT_QM "${TS}") - list(APPEND QT_QM_FILES "${QT_QM_LOCATION}/${QT_QM}") + set(QT_QM "${QT_QM_LOCATION}/${QT_QM}") + if(EXISTS "${QT_QM}") + list(APPEND QT_QM_FILES "${QT_QM}") + endif() endforeach() list(APPEND TRANSLATION_FILES ${QT_QM_FILES}) endif()