We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15219e2 commit 19561cfCopy full SHA for 19561cf
cmake/external/onnxruntime_external_deps.cmake
@@ -14,6 +14,16 @@ foreach(ONNXRUNTIME_DEP IN LISTS ONNXRUNTIME_DEPS_LIST)
14
set(DEP_URL_${ONNXRUNTIME_DEP_NAME} ${ONNXRUNTIME_DEP_URL})
15
# The third column is SHA1 hash value
16
set(DEP_SHA1_${ONNXRUNTIME_DEP_NAME} ${ONNXRUNTIME_DEP})
17
+
18
+ if(ONNXRUNTIME_DEP_URL MATCHES "^https://")
19
+ # Search a local mirror folder
20
+ string(REGEX REPLACE "^https://" "${REPO_ROOT}/mirror/" LOCAL_URL "${ONNXRUNTIME_DEP_URL}")
21
22
+ if(EXISTS "${LOCAL_URL}")
23
+ cmake_path(ABSOLUTE_PATH LOCAL_URL)
24
+ set(DEP_URL_${ONNXRUNTIME_DEP_NAME} "${LOCAL_URL}")
25
+ endif()
26
27
endif()
28
endforeach()
29
0 commit comments