aedi: do not run download-cmake target automatically

This commit is contained in:
alexey.lysiuk 2021-07-25 12:39:48 +03:00
parent 0e747e7e99
commit 9cf0788e83
2 changed files with 2 additions and 8 deletions

View file

@ -26,7 +26,7 @@ import subprocess
import typing
from .state import BuildState
from .target import Target, targets, DOWNLOAD_CMAKE_TARGET_NAME
from .target import Target, targets
from .utility import CaseInsensitiveDict, TargetPlatform, symlink_directory, OS_VERSION_X86_64, OS_VERSION_ARM64
@ -123,9 +123,6 @@ class Builder(object):
if not state.xcode and state.install_path.exists():
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:

View file

@ -51,11 +51,8 @@ class CleanDepsTarget(CleanAllTarget):
self.args += (state.deps_path,)
DOWNLOAD_CMAKE_TARGET_NAME = 'download-cmake'
class DownloadCMakeTarget(Target):
def __init__(self, name=DOWNLOAD_CMAKE_TARGET_NAME):
def __init__(self, name='download-cmake'):
super().__init__(name)
def build(self, state: BuildState):