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/table | |
parent | 0b2dd2c5cd39833945fcea3a39811898bf40c6b5 (diff) | |
download | openttd-a06fe8e8a7d749f1fbd08102a9516acd51171b24.tar.xz |
Fix: [CMake] cross-compiling requires native tools
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/table/CMakeLists.txt b/src/table/CMakeLists.txt index 23b4724e3..e63337b8a 100644 --- a/src/table/CMakeLists.txt +++ b/src/table/CMakeLists.txt @@ -11,6 +11,10 @@ set(TABLE_INI_SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/window_settings.ini ) +if (HOST_BINARY_DIR) + include(${HOST_BINARY_DIR}/settingsgen.cmake) +endif() + # Generate a command and target to create the settings table add_custom_command_timestamp(OUTPUT ${TABLE_BINARY_DIR}/settings.h COMMAND ${CMAKE_COMMAND} -E make_directory ${TABLE_BINARY_DIR} |