| 1 | # |
| 2 | # SPDX-FileCopyrightText: Copyright 2024-2025 Arm Limited and/or its affiliates <open-source-office@arm.com> |
| 3 | # |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | # |
| 6 | include(FetchContent) |
| 7 | |
| 8 | # Set timestamp of extracted contents to time of extraction. |
| 9 | if(POLICY CMP0135) |
| 10 | cmake_policy(SET CMP0135 NEW) |
| 11 | endif() |
| 12 | |
| 13 | fetchcontent_declare(googlebench |
| 14 | URL ${CMAKE_CURRENT_SOURCE_DIR}/third_party/benchmark-v1.9.4.zip |
| 15 | URL_HASH SHA256=7a273667fbc23480df1306f82bdb960672811dd29a0342bb34e14040307cf820 |
| 16 | ) |
| 17 | |
| 18 | set(BENCHMARK_ENABLE_INSTALL OFF CACHE BOOL "" FORCE) |
| 19 | set(BENCHMARK_INSTALL_DOCS OFF CACHE BOOL "" FORCE) |
| 20 | |
| 21 | fetchcontent_makeavailable(googlebench) |