From 072422075e9d4f50b297091efe1ed4c4d56c279d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 4 Apr 2015 16:21:32 -0700 Subject: 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 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f87234a19..ee0eccc1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 "") -- cgit v1.2.3-70-g09d2