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

@@ -2,6 +2,7 @@ function(download_googltest)
include(FetchContent)
set(googletest_URL "https://github.com/google/googletest/archive/refs/tags/v1.13.0.tar.gz")
set(googletest_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/googletest-1.13.0.tar.gz")
set(googletest_HASH "SHA256=ad7fdba11ea011c1d925b3289cf4af2c66a352e18d4c7264392fead75e919363")
# If you don't have access to the Internet,
@@ -27,7 +28,9 @@ function(download_googltest)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_Declare(googletest
URL ${googletest_URL}
URL
${googletest_URL}
${googletest_URL2}
URL_HASH ${googletest_HASH}
)