Fix: [CMake] cross-compiling requires native tools

(cherry picked from commit fdaf0d0b2f82701c8ea1e9a1125415351cf49e57)
This commit is contained in:
glx22
2020-06-29 19:15:28 +02:00
committed by Jonathan G Rennison
parent 33c2150c49
commit 909c9656ce
3 changed files with 45 additions and 6 deletions

View File

@@ -14,12 +14,12 @@ set(TABLE_INI_SOURCE_FILES
# 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}
COMMAND settingsgen
COMMAND hostsettingsgen
-o ${TABLE_BINARY_DIR}/settings.h
-b ${CMAKE_SOURCE_DIR}/src/table/settings.h.preamble
-a ${CMAKE_SOURCE_DIR}/src/table/settings.h.postamble
${TABLE_INI_SOURCE_FILES}
DEPENDS settingsgen ${TABLE_INI_SOURCE_FILES}
DEPENDS hostsettingsgen ${TABLE_INI_SOURCE_FILES}
${CMAKE_SOURCE_DIR}/src/table/settings.h.preamble
${CMAKE_SOURCE_DIR}/src/table/settings.h.postamble
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}