From 582d6fe497b81593e0a6a5ec12063a10e5281c09 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 27 Jun 2021 15:25:05 +0300 Subject: [PATCH] aedi: download cmake before building a target --- aedi/builder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aedi/builder.py b/aedi/builder.py index 09de1be5..8326bcad 100644 --- a/aedi/builder.py +++ b/aedi/builder.py @@ -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: