mirror of https://github.com/mgba-emu/mgba.git
Qt: Only include qtbase translations if present
This commit is contained in:
parent
0f7327ea44
commit
782742a731
|
@ -268,7 +268,10 @@ if(Qt5LinguistTools_FOUND)
|
||||||
foreach(TS ${TS_FILES})
|
foreach(TS ${TS_FILES})
|
||||||
get_filename_component(TS ${TS} NAME)
|
get_filename_component(TS ${TS} NAME)
|
||||||
string(REGEX REPLACE "${BINARY_NAME}-(.*).ts$" "qtbase_\\1.qm" QT_QM "${TS}")
|
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()
|
endforeach()
|
||||||
list(APPEND TRANSLATION_FILES ${QT_QM_FILES})
|
list(APPEND TRANSLATION_FILES ${QT_QM_FILES})
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue