summaryrefslogtreecommitdiffstats
path: root/cmake/lang_cfg.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/lang_cfg.cmake')
-rw-r--r--cmake/lang_cfg.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/lang_cfg.cmake b/cmake/lang_cfg.cmake
new file mode 100644
index 0000000..b2b6708
--- /dev/null
+++ b/cmake/lang_cfg.cmake
@@ -0,0 +1,11 @@
+if(${CMAKE_ARGC} GREATER 1)
+ if ("${CMAKE_ARGV3}" STREQUAL "ENONLY")
+ message("#define ENGLISH_ONLY")
+ else()
+ math(EXPR UPTO ${CMAKE_ARGC}-1)
+ foreach(i RANGE 3 ${UPTO})
+ message("#define ENGLISH_${CMAKE_ARGV${i}}")
+ endforeach()
+ endif()
+endif()
+