From 09032a27619bb80471b056aa67219a208a06f2d1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 4 Apr 2015 13:12:20 -0700 Subject: 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 --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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 -- cgit v1.2.3-70-g09d2