mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cmake: make sure we have no emptry Qt translation names
When building on a Mac for some reason I was getting an empty translation file name (and therefore and entry that was the whole directory and not a translation file. This is a bit clumsy but it fixes the problem. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d8c44f3470
commit
09032a2761
1 changed files with 4 additions and 1 deletions
|
@ -440,8 +440,11 @@ foreach(TRANSLATION ${TRANSLATION_SRC})
|
|||
set(TRANSLATIONS ${TRANSLATIONS} ${CMAKE_BINARY_DIR}/${TRANSLATION_QM})
|
||||
endforeach()
|
||||
|
||||
set(QTTRANSLATIONS "")
|
||||
foreach(QTTRANSLATION ${QTTRANSLATIONS_BASE})
|
||||
set(QTTRANSLATIONS ${QTTRANSLATIONS} ${QT_TRANSLATION_DIR}/${QTTRANSLATION})
|
||||
if(NOT ${QTTRANSLATION} STREQUAL "")
|
||||
set(QTTRANSLATIONS ${QTTRANSLATIONS} ${QT_TRANSLATION_DIR}/${QTTRANSLATION})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# now for each platform the install instructions
|
||||
|
|
Loading…
Add table
Reference in a new issue