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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-12-16 14:24:47 -08:00
parent ec48e9ce5a
commit 44990671f1

View file

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