Add alternative URLs for downloading deps (#80)

This commit is contained in:
Fangjun Kuang
2023-03-05 09:42:16 +08:00
committed by GitHub
parent b23ff6f1df
commit 62ae1dcd24
7 changed files with 31 additions and 7 deletions

View File

@@ -3,6 +3,7 @@ function(download_websocketpp)
# The latest commit on the develop branch os as 2022-10-22
set(websocketpp_URL "https://github.com/zaphoyd/websocketpp/archive/b9aeec6eaf3d5610503439b4fae3581d9aff08e8.zip")
set(websocketpp_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/websocketpp-b9aeec6eaf3d5610503439b4fae3581d9aff08e8.zip")
set(websocketpp_HASH "SHA256=1385135ede8191a7fbef9ec8099e3c5a673d48df0c143958216cd1690567f583")
# If you don't have access to the Internet,
@@ -23,7 +24,9 @@ function(download_websocketpp)
endforeach()
FetchContent_Declare(websocketpp
URL ${websocketpp_URL}
URL
${websocketpp_URL}
${websocketpp_URL2}
URL_HASH ${websocketpp_HASH}
)