Make downloads in CMake optional

This commit is contained in:
AnyOldName3
2026-11-04 14:00:11 +00:00
parent 9666b295d1
commit 274ba04fbc
+2 -1
View File
@@ -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
)