all repos — mgba @ 782742a731c20f146888d28b97ed8fe666c2f6be

mGBA Game Boy Advance Emulator

Qt: Only include qtbase translations if present
Vicki Pfau vi@endrift.com
Mon, 25 Mar 2019 00:20:21 -0700
commit

782742a731c20f146888d28b97ed8fe666c2f6be

parent

0f7327ea44518acb20874c3a7766443336146408

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/CMakeLists.txtsrc/platform/qt/CMakeLists.txt

@@ -268,7 +268,10 @@ get_filename_component(QT_QM_LOCATION "${QT_CORE_LOCATION}/../translations" ABSOLUTE)

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()