mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
Merge pull request #22744 from WanliZhong:fix_gitcode_mirror
This commit is contained in:
commit
21133a2091
@ -64,7 +64,7 @@ macro(ocv_download_url_gitcode_archive_release SUBDIR)
|
|||||||
list(GET DL_URL_split 4 __REPO_NAME)
|
list(GET DL_URL_split 4 __REPO_NAME)
|
||||||
set(DL_URL "https://gitcode.net/${__OWNER}/${__REPO_NAME}/-/archive/${${DL_ID}_RELEASE_GITCODE}/${__REPO_NAME}-")
|
set(DL_URL "https://gitcode.net/${__OWNER}/${__REPO_NAME}/-/archive/${${DL_ID}_RELEASE_GITCODE}/${__REPO_NAME}-")
|
||||||
set(DL_HASH "${${DL_ID}_PKG_MD5_GITCODE}")
|
set(DL_HASH "${${DL_ID}_PKG_MD5_GITCODE}")
|
||||||
set(SUBDIR "${${DL_ID}_PKG_NAME_GITCODE}" PARENT_SCOPE)
|
set(${SUBDIR} "${${DL_ID}_PKG_NAME_GITCODE}" PARENT_SCOPE)
|
||||||
else()
|
else()
|
||||||
message(WARNING "Package ${DL_ID} from mirror gitcode.net is outdated and will be downloaded from github.com instead.")
|
message(WARNING "Package ${DL_ID} from mirror gitcode.net is outdated and will be downloaded from github.com instead.")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user