summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-04 13:12:20 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-04 13:12:20 -0700
commit09032a27619bb80471b056aa67219a208a06f2d1 (patch)
treed3b7ebfd71bb75d3f5c71ba5d94f5383ede9d918 /CMakeLists.txt
parentd8c44f34707293ff12d47690b8fbdf2e82e9c8ed (diff)
downloadsubsurface-09032a27619bb80471b056aa67219a208a06f2d1.tar.gz
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>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1eeec9a79..6129a99a4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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