mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix build breakage with earlier Qt versions
In order to get the translations right for Windows we now explicitly pull in a lot more translation files - some of which don't exist in earlier Qt versions. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a959e437a9
commit
f563f73607
1 changed files with 4 additions and 1 deletions
|
@ -331,6 +331,7 @@ set(DOCFILES
|
||||||
${CMAKE_BINARY_DIR}/Documentation/user-manual_ru.html
|
${CMAKE_BINARY_DIR}/Documentation/user-manual_ru.html
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# add all the translations that we may need
|
||||||
FILE(STRINGS "subsurface_enabled_translations" QTTRANSLATIONS_BASE)
|
FILE(STRINGS "subsurface_enabled_translations" QTTRANSLATIONS_BASE)
|
||||||
|
|
||||||
if(NOT DEFINED QT_TRANSLATION_DIR OR QT_TRANSLATION_DIR STREQUAL "")
|
if(NOT DEFINED QT_TRANSLATION_DIR OR QT_TRANSLATION_DIR STREQUAL "")
|
||||||
|
@ -339,7 +340,9 @@ endif()
|
||||||
set(QTTRANSLATIONS "")
|
set(QTTRANSLATIONS "")
|
||||||
foreach(QTTRANSLATION ${QTTRANSLATIONS_BASE})
|
foreach(QTTRANSLATION ${QTTRANSLATIONS_BASE})
|
||||||
if(NOT ${QTTRANSLATION} STREQUAL "")
|
if(NOT ${QTTRANSLATION} STREQUAL "")
|
||||||
set(QTTRANSLATIONS ${QTTRANSLATIONS} ${QT_TRANSLATION_DIR}/${QTTRANSLATION})
|
if(EXISTS ${QT_TRANSLATION_DIR}/${QTTRANSLATION})
|
||||||
|
set(QTTRANSLATIONS ${QTTRANSLATIONS} ${QT_TRANSLATION_DIR}/${QTTRANSLATION})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue