From a4b6f59e0c99457ba8f4f71782e51d50b7a1057f Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 30 Sep 2017 11:26:18 +0200 Subject: build: fix the way lang_cfg.h is generated (regression to #574) All language defines were written onto one line and thus only the first language (normally AM, Armenian, would be active. Added \n as MESSAGE apparently automatically added it and APPEND doesn't. --- cmake/lang_cfg.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/lang_cfg.cmake b/cmake/lang_cfg.cmake index 86c2d9a..0a87320 100644 --- a/cmake/lang_cfg.cmake +++ b/cmake/lang_cfg.cmake @@ -1,10 +1,10 @@ if(${CMAKE_ARGC} GREATER 2) if ("${CMAKE_ARGV4}" STREQUAL "ENONLY") - file(APPEND ${CMAKE_ARGV3} " #define ENGLISH_ONLY") + file(APPEND ${CMAKE_ARGV3} " #define ENGLISH_ONLY\n") else() math(EXPR UPTO ${CMAKE_ARGC}-1) foreach(i RANGE 4 ${UPTO}) - file(APPEND ${CMAKE_ARGV3} " #define LANG_${CMAKE_ARGV${i}}") + file(APPEND ${CMAKE_ARGV3} " #define LANG_${CMAKE_ARGV${i}}\n") endforeach() endif() endif() -- cgit v0.12