From 144991990ed35c97d02e221240e8f4e48704faac Mon Sep 17 00:00:00 2001 From: glx22 Date: Tue, 2 Feb 2021 00:18:20 +0100 Subject: Fix: [CMake] Language files should depend on english.txt --- src/lang/CMakeLists.txt | 10 +++++++--- 1 file 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" ) -- cgit v1.2.3-70-g09d2