mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-06-10 21:19:26 +02:00
base: Add cmake wrapper scripts for CMAKE_TOOLCHAIN_FILE
All images should define this variables. Disable build tests on the base image because it is not configured for cross compiling.
This commit is contained in:
@ -58,10 +58,6 @@ def test_cmake_build_system(build_dir, language, source, emulator, linker_flags,
|
||||
if linker_flags:
|
||||
cmake_configuration_cmd.insert(1,
|
||||
'-DCMAKE_EXE_LINKER_FLAGS="{0}"'.format(' '.join(linker_flags)))
|
||||
toolchain_file = os.getenv('CMAKE_TOOLCHAIN_FILE')
|
||||
if toolchain_file:
|
||||
cmake_configuration_cmd.insert(1,
|
||||
'-DCMAKE_TOOLCHAIN_FILE={0}'.format(toolchain_file))
|
||||
print(' '.join(cmake_configuration_cmd))
|
||||
sys.stdout.flush()
|
||||
if subprocess.call(cmake_configuration_cmd):
|
||||
|
Reference in New Issue
Block a user