Fix: [CMake] cross-compiling requires native tools

This commit is contained in:
glx22
2020-07-01 02:52:32 +02:00
committed by Owen Rudge
parent 0b2dd2c5cd
commit a06fe8e8a7
6 changed files with 45 additions and 23 deletions

View File

@@ -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}