summaryrefslogtreecommitdiff
path: root/src/lang
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-02-02 00:18:20 +0100
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-02-02 17:33:18 +0100
commit144991990ed35c97d02e221240e8f4e48704faac (patch)
tree70c9ad7ad76b0f4e0bb00a21a04595275f89022d /src/lang
parent696b6990eafd00e0d947814b98fafa0d27b1e4ee (diff)
downloadopenttd-144991990ed35c97d02e221240e8f4e48704faac.tar.xz
Fix: [CMake] Language files should depend on english.txt
Diffstat (limited to 'src/lang')
-rw-r--r--src/lang/CMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lang/CMakeLists.txt b/src/lang/CMakeLists.txt
index 75d06f530..f3aedca4b 100644
--- a/src/lang/CMakeLists.txt
+++ b/src/lang/CMakeLists.txt
@@ -1,4 +1,9 @@
+set(MASTER_LANG_FILE
+ ${CMAKE_CURRENT_SOURCE_DIR}/english.txt
+)
+
set(LANG_SOURCE_FILES
+ ${MASTER_LANG_FILE}
${CMAKE_CURRENT_SOURCE_DIR}/afrikaans.txt
${CMAKE_CURRENT_SOURCE_DIR}/arabic_egypt.txt
${CMAKE_CURRENT_SOURCE_DIR}/basque.txt
@@ -10,7 +15,6 @@ set(LANG_SOURCE_FILES
${CMAKE_CURRENT_SOURCE_DIR}/czech.txt
${CMAKE_CURRENT_SOURCE_DIR}/danish.txt
${CMAKE_CURRENT_SOURCE_DIR}/dutch.txt
- ${CMAKE_CURRENT_SOURCE_DIR}/english.txt
${CMAKE_CURRENT_SOURCE_DIR}/english_AU.txt
${CMAKE_CURRENT_SOURCE_DIR}/english_US.txt
${CMAKE_CURRENT_SOURCE_DIR}/esperanto.txt
@@ -75,7 +79,7 @@ foreach(LANG_SOURCE_FILE IN LISTS LANG_SOURCE_FILES)
-s ${CMAKE_CURRENT_SOURCE_DIR}
-d ${LANG_BINARY_DIR}
${LANG_SOURCE_FILE}
- DEPENDS strgen
+ DEPENDS strgen ${MASTER_LANG_FILE}
MAIN_DEPENDENCY ${LANG_SOURCE_FILE}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Compiling language ${LANG_SOURCE_FILE_NAME_WE}"
@@ -103,7 +107,7 @@ add_custom_command_timestamp(OUTPUT ${TABLE_BINARY_DIR}/strings.h
COMMAND strgen
-s ${CMAKE_CURRENT_SOURCE_DIR}
-d ${TABLE_BINARY_DIR}
- DEPENDS strgen ${LANG_SOURCE_FILES}
+ DEPENDS strgen ${MASTER_LANG_FILE}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating table/strings.h"
)