diff options
author | glx22 <glx@openttd.org> | 2020-07-01 02:52:32 +0200 |
---|---|---|
committer | Owen Rudge <owen@owenrudge.net> | 2020-12-04 09:49:31 +0000 |
commit | a06fe8e8a7d749f1fbd08102a9516acd51171b24 (patch) | |
tree | 97b90a5a5229c8c1fae0729cf8ccba18d08243f5 /src/lang | |
parent | 0b2dd2c5cd39833945fcea3a39811898bf40c6b5 (diff) | |
download | openttd-a06fe8e8a7d749f1fbd08102a9516acd51171b24.tar.xz |
Fix: [CMake] cross-compiling requires native tools
Diffstat (limited to 'src/lang')
-rw-r--r-- | src/lang/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lang/CMakeLists.txt b/src/lang/CMakeLists.txt index d9243b531..75d06f530 100644 --- a/src/lang/CMakeLists.txt +++ b/src/lang/CMakeLists.txt @@ -59,6 +59,10 @@ set(LANG_SOURCE_FILES set(LANG_BINARY_DIR ${CMAKE_BINARY_DIR}/lang) +if (HOST_BINARY_DIR) + include(${HOST_BINARY_DIR}/strgen.cmake) +endif() + # Walk over all the (finished) language files, and generate a command to compile them foreach(LANG_SOURCE_FILE IN LISTS LANG_SOURCE_FILES) get_filename_component(LANG_SOURCE_FILE_NAME_WE ${LANG_SOURCE_FILE} NAME_WE) |