From 39f995e31915e021b1d2661151893380b900680b Mon Sep 17 00:00:00 2001 From: zoom Date: Thu, 3 Nov 2022 16:54:08 +0800 Subject: [PATCH] Fix the problem that "ADE" downloaded from GitCode doesn't work. --- cmake/mirrors/gitcode.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/mirrors/gitcode.cmake b/cmake/mirrors/gitcode.cmake index ec0893f3f7..c9d41e7458 100644 --- a/cmake/mirrors/gitcode.cmake +++ b/cmake/mirrors/gitcode.cmake @@ -64,7 +64,7 @@ macro(ocv_download_url_gitcode_archive_release SUBDIR) 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_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() message(WARNING "Package ${DL_ID} from mirror gitcode.net is outdated and will be downloaded from github.com instead.") endif()