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

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