blob: a1a02423e644f18e90d97004f0aced10e418ec9f [file] [log] [blame]
Raef Coles19715382020-07-10 09:50:17 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited. All rights reserved.
Chris Brand2e5af6e2022-07-05 11:15:17 -07003# Copyright (c) 2022 Cypress Semiconductor Corporation (an Infineon company)
4# or an affiliate of Cypress Semiconductor Corporation. All rights reserved.
Raef Coles19715382020-07-10 09:50:17 +01005#
6# SPDX-License-Identifier: BSD-3-Clause
7#
8#-------------------------------------------------------------------------------
9
Øyvind Rønningstadc72d9552020-10-30 21:29:40 +010010# Because of https://gitlab.kitware.com/cmake/cmake/-/issues/20579 CMP0097 is
11# non-functional until cmake 3.18.0.
Chris Brand2e5af6e2022-07-05 11:15:17 -070012if(${CMAKE_VERSION} VERSION_LESS "3.18.0")
13 # Workaround for not having CMP0097. Use existing directory.
14 set(MCUBOOT_SUBMODULES "docs")
Raef Coles19715382020-07-10 09:50:17 +010015endif()
16
Chris Brand2e5af6e2022-07-05 11:15:17 -070017fetch_remote_library(
18 LIB_NAME mcuboot
19 LIB_SOURCE_PATH_VAR MCUBOOT_PATH
20 FETCH_CONTENT_ARGS
21 GIT_REPOSITORY https://github.com/mcu-tools/mcuboot.git
22 GIT_TAG ${MCUBOOT_VERSION}
23 # ToDo: set GIT_SHALLOW to 'TRUE' when MCUBOOT_VERSION will be set to a tag
24 # (instead of a commit hash) with the new release.
25 GIT_SHALLOW FALSE
26 GIT_PROGRESS TRUE
27 GIT_SUBMODULES "${MCUBOOT_SUBMODULES}"
28)