From 44990671f17d08d68487f48a4cfd2abf7f8b9c3b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 16 Dec 2015 14:24:47 -0800 Subject: Cmake: correctly read in the enabled translations FILE READ doesn't do what we want. It's the STRINGS command that considers \n as whitespace and gets the correct result. Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4992f4da1..c1211664c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,7 +298,7 @@ set(DOCFILES ${CMAKE_BINARY_DIR}/Documentation/user-manual_ru.html ) -FILE(READ "subsurface_enabled_translations" QTTRANSLATIONS_BASE) +FILE(STRINGS "subsurface_enabled_translations" QTTRANSLATIONS_BASE) if(NOT DEFINED QT_TRANSLATION_DIR OR QT_TRANSLATION_DIR STREQUAL "") set(QT_TRANSLATION_DIR ${Qt5Core_DIR}/../../../translations) -- cgit v1.2.3-70-g09d2