mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
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:
parent
ec48e9ce5a
commit
44990671f1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue