mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +00:00
CMake: Add option to disable network downloads altogether
This is useful for fully offline builds, and some distribution platforms
This commit is contained in:
parent
b046940679
commit
68953f798b
3 changed files with 5 additions and 0 deletions
|
@ -225,6 +225,9 @@ endfunction()
|
|||
|
||||
function(download_file_multisource urls path)
|
||||
if (NOT EXISTS "${path}")
|
||||
if (NOT ENABLE_NETWORK_DOWNLOADS)
|
||||
message(FATAL_ERROR "${path} does not exist, and unable to download it")
|
||||
endif()
|
||||
get_filename_component(file "${path}" NAME)
|
||||
|
||||
foreach(url ${urls})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue