Skip to content

Commit f870ba8

Browse files
committed
Set default language to the current language instead of the first language in the list.
1 parent d6f95c6 commit f870ba8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ message (STATUS "Archicad Version: ${AC_VERSION}")
1313
SetGlobalCompilerDefinitions (${AC_VERSION})
1414

1515
ReadConfigJson ()
16-
list (GET addOnLanguages 0 AC_ADDON_LANGUAGE) # 0 means the value "INT" of "languages" in config.json
17-
set (AC_ADDON_LANGUAGE "${AC_ADDON_LANGUAGE}" CACHE STRING "Add-On language code.")
16+
set (AC_ADDON_LANGUAGE "${addOnDefaultLanguage}" CACHE STRING "Add-On language code.")
1817

1918
project (${addOnName}-${AC_VERSION})
2019

0 commit comments

Comments
 (0)