CMake: Use openttd_lib split build from upstream

Add option to disable for cross-compiling
This commit is contained in:
Jonathan G Rennison
2023-12-13 17:26:37 +00:00
parent c466292d8a
commit 15ed39b5ac
4 changed files with 39 additions and 18 deletions

View File

@@ -32,7 +32,7 @@ endfunction()
# For example: ADD_IF SDL_FOUND AND Allegro_FOUND
#
function(add_files)
_add_files_tgt(openttd ${ARGV})
_add_files_tgt(${OPENTTD_LIB} ${ARGV})
endfunction()
# Add a test file to be compiled.
@@ -44,7 +44,9 @@ endfunction()
# For example: ADD_IF SDL_FOUND AND Allegro_FOUND
#
function(add_test_files)
_add_files_tgt(openttd_test ${ARGV})
if(NOT OPTION_NO_SPLIT_LIB)
_add_files_tgt(openttd_test ${ARGV})
endif()
endfunction()
# This function works around an 'issue' with CMake, where