mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cmake: try to pick a useful default for the location of Qt translations
Not sure if this will work for most installations - it does work for mine. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b79c01ab7c
commit
072422075e
1 changed files with 3 additions and 0 deletions
|
@ -436,6 +436,9 @@ foreach(TRANSLATION ${TRANSLATION_SRC})
|
|||
set(TRANSLATIONS ${TRANSLATIONS} ${CMAKE_BINARY_DIR}/${TRANSLATION_QM})
|
||||
endforeach()
|
||||
|
||||
if(QT_TRANSLATION_DIR STREQUAL "")
|
||||
set(QT_TRANSLATION_DIR ${Qt5Core_DIR}/../../../translations)
|
||||
endif()
|
||||
set(QTTRANSLATIONS "")
|
||||
foreach(QTTRANSLATION ${QTTRANSLATIONS_BASE})
|
||||
if(NOT ${QTTRANSLATION} STREQUAL "")
|
||||
|
|
Loading…
Add table
Reference in a new issue