Raef Coles | 1971538 | 2020-07-10 09:50:17 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
Chris Brand | 2e5af6e | 2022-07-05 11:15:17 -0700 | [diff] [blame] | 3 | # Copyright (c) 2022 Cypress Semiconductor Corporation (an Infineon company) |
| 4 | # or an affiliate of Cypress Semiconductor Corporation. All rights reserved. |
Raef Coles | 1971538 | 2020-07-10 09:50:17 +0100 | [diff] [blame] | 5 | # |
| 6 | # SPDX-License-Identifier: BSD-3-Clause |
| 7 | # |
| 8 | #------------------------------------------------------------------------------- |
| 9 | |
Øyvind Rønningstad | c72d955 | 2020-10-30 21:29:40 +0100 | [diff] [blame] | 10 | # Because of https://gitlab.kitware.com/cmake/cmake/-/issues/20579 CMP0097 is |
| 11 | # non-functional until cmake 3.18.0. |
Chris Brand | 2e5af6e | 2022-07-05 11:15:17 -0700 | [diff] [blame] | 12 | if(${CMAKE_VERSION} VERSION_LESS "3.18.0") |
| 13 | # Workaround for not having CMP0097. Use existing directory. |
| 14 | set(MCUBOOT_SUBMODULES "docs") |
Raef Coles | 1971538 | 2020-07-10 09:50:17 +0100 | [diff] [blame] | 15 | endif() |
| 16 | |
Chris Brand | 2e5af6e | 2022-07-05 11:15:17 -0700 | [diff] [blame] | 17 | fetch_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 | ) |