aedi: download cmake before building a target

This commit is contained in:
alexey.lysiuk 2021-06-27 15:25:05 +03:00
parent 5ca6c4bc4d
commit 582d6fe497

View file

@ -25,7 +25,7 @@ import subprocess
import typing
from .state import BuildState
from .target import Target, targets
from .target import Target, targets, DOWNLOAD_CMAKE_TARGET_NAME
from .utility import CaseInsensitiveDict, TargetPlatform, symlink_directory, OS_VERSION_X86_64, OS_VERSION_ARM64
@ -128,6 +128,9 @@ class Builder(object):
if not state.xcode and os.path.exists(state.install_path):
shutil.rmtree(state.install_path)
if target.name != DOWNLOAD_CMAKE_TARGET_NAME:
Builder(['--target=' + DOWNLOAD_CMAKE_TARGET_NAME]).run()
self._create_prefix_directory()
if target.multi_platform and not state.xcode: