|
@@ -4,9 +4,15 @@ function(download_portaudio)
|
|
|
set(portaudio_URL "http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz")
|
|
|
set(portaudio_HASH "SHA256=47efbf42c77c19a05d22e627d42873e991ec0c1357219c0d74ce6a2948cb2def")
|
|
|
|
|
|
- # If you don't have access to the internet, please download it to your
|
|
|
+ # If you don't have access to the Internet, please download it to your
|
|
|
# local drive and modify the following line according to your needs.
|
|
|
- # set(portaudio_URL "file:///star-fj/fangjun/download/github/pa_stable_v190700_20210406.tgz")
|
|
|
+ if(EXISTS "/star-fj/fangjun/download/github/pa_stable_v190700_20210406.tgz")
|
|
|
+ set(portaudio_URL "file:///star-fj/fangjun/download/github/pa_stable_v190700_20210406.tgz")
|
|
|
+ elseif(EXISTS "/Users/fangjun/Downloads/pa_stable_v190700_20210406.tgz")
|
|
|
+ set(portaudio_URL "file:///Users/fangjun/Downloads/pa_stable_v190700_20210406.tgz")
|
|
|
+ elseif(EXISTS "/tmp/pa_stable_v190700_20210406.tgz")
|
|
|
+ set(portaudio_URL "file:///tmp/pa_stable_v190700_20210406.tgz")
|
|
|
+ endif()
|
|
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
|
set(PA_BUILD_SHARED ON CACHE BOOL "" FORCE)
|
|
@@ -23,7 +29,7 @@ function(download_portaudio)
|
|
|
|
|
|
FetchContent_GetProperties(portaudio)
|
|
|
if(NOT portaudio_POPULATED)
|
|
|
- message(STATUS "Downloading portaudio")
|
|
|
+ message(STATUS "Downloading portaudio from ${portaudio_URL}")
|
|
|
FetchContent_Populate(portaudio)
|
|
|
endif()
|
|
|
message(STATUS "portaudio is downloaded to ${portaudio_SOURCE_DIR}")
|