Changeset f563f73 in subsurface


Ignore:
Timestamp:
Feb 3, 2017, 10:58:00 AM (2 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
db7290a
Parents:
a959e43
git-author:
Dirk Hohndel <dirk@…> (02/03/17 10:57:57)
git-committer:
Dirk Hohndel <dirk@…> (02/03/17 10:58:00)
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    rd62e461 rf563f73  
    332332)
    333333
     334# add all the translations that we may need
    334335FILE(STRINGS "subsurface_enabled_translations" QTTRANSLATIONS_BASE)
    335336
     
    340341foreach(QTTRANSLATION ${QTTRANSLATIONS_BASE})
    341342        if(NOT ${QTTRANSLATION} STREQUAL "")
    342                 set(QTTRANSLATIONS ${QTTRANSLATIONS} ${QT_TRANSLATION_DIR}/${QTTRANSLATION})
     343                if(EXISTS ${QT_TRANSLATION_DIR}/${QTTRANSLATION})
     344                        set(QTTRANSLATIONS ${QTTRANSLATIONS} ${QT_TRANSLATION_DIR}/${QTTRANSLATION})
     345                endif()
    343346        endif()
    344347endforeach()
Note: See TracChangeset for help on using the changeset viewer.