summaryrefslogtreecommitdiffstats
path: root/cmake/lang_cfg.cmake
blob: 0a87320553b126ec5fdaa674055686bb7ef55949 (plain)
1
2
3
4
5
6
7
8
9
10
11
if(${CMAKE_ARGC} GREATER 2)
	if ("${CMAKE_ARGV4}" STREQUAL "ENONLY")
		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}}\n")
		endforeach()
	endif()
endif()