Summer Qin | 0c6ab34 | 2022-12-12 15:59:10 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2023, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | set(ERPC_REPO_PATH "DOWNLOAD" CACHE PATH "Path to eRPC repo (or DOWNLOAD to fetch automatically") |
| 9 | set(ERPC_VERSION "1.9.1" CACHE STRING "The version of eRPC to use") |
| 10 | |
| 11 | fetch_remote_library( |
| 12 | LIB_NAME erpc |
| 13 | LIB_SOURCE_PATH_VAR ERPC_REPO_PATH |
| 14 | LIB_BASE_DIR "${CMAKE_BINARY_DIR}/lib/ext" |
| 15 | FETCH_CONTENT_ARGS |
| 16 | GIT_REPOSITORY https://github.com/EmbeddedRPC/erpc.git |
| 17 | GIT_TAG ${ERPC_VERSION} |
| 18 | GIT_SHALLOW TRUE |
| 19 | GIT_PROGRESS TRUE |
| 20 | GIT_SUBMODULES "" |
| 21 | ) |