Permalink
Browse files

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.
  • Loading branch information...
albert-github committed Sep 30, 2017
1 parent 96e38d0 commit a4b6f59e0c99457ba8f4f71782e51d50b7a1057f
Showing with 2 additions and 2 deletions.
  1. +2 −2 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()

0 comments on commit a4b6f59

Please sign in to comment.