From 274ba04fbc7bf65ede877b744ff026cf2b21e8fe Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Wed, 4 Nov 2026 14:00:11 +0000 Subject: [PATCH] Make downloads in CMake optional --- apps/components_tests/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/components_tests/CMakeLists.txt b/apps/components_tests/CMakeLists.txt index 41360c1266..1b1fde63c4 100644 --- a/apps/components_tests/CMakeLists.txt +++ b/apps/components_tests/CMakeLists.txt @@ -130,8 +130,9 @@ if (BUILD_WITH_CODE_COVERAGE) target_link_libraries(components-tests gcov) endif() +set(TEMPLATE_OMWGAME_URL https://gitlab.com/OpenMW/example-suite/-/raw/8966dab24692555eec720c854fb0f73d108070cd/data/template.omwgame CACHE STRING "URL for template.omwgame. Use file:// URL for local file in offline builds.") file(DOWNLOAD - https://gitlab.com/OpenMW/example-suite/-/raw/8966dab24692555eec720c854fb0f73d108070cd/data/template.omwgame + ${TEMPLATE_OMWGAME_URL} ${CMAKE_CURRENT_BINARY_DIR}/data/template.omwgame EXPECTED_HASH SHA512=6e38642bcf013c5f496a9cb0bf3ec7c9553b6e86b836e7844824c5a05f556c9391167214469b6318401684b702d7569896bf743c85aee4198612b3315ba778d6 )