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_portaudio)
include(FetchContent)
set(portaudio_URL "http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz")
set(portaudio_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/pa_stable_v190700_20210406.tgz")
set(portaudio_HASH "SHA256=47efbf42c77c19a05d22e627d42873e991ec0c1357219c0d74ce6a2948cb2def")
# If you don't have access to the Internet, please download it to your
@@ -31,7 +32,9 @@ function(download_portaudio)
endif()
FetchContent_Declare(portaudio
URL ${portaudio_URL}
URL
${portaudio_URL}
${portaudio_URL2}
URL_HASH ${portaudio_HASH}
)