diff --git a/cmake/external_libs/dirent.cmake b/cmake/external_libs/dirent.cmake index 16835a715f2..b3657d41c49 100644 --- a/cmake/external_libs/dirent.cmake +++ b/cmake/external_libs/dirent.cmake @@ -1,5 +1,11 @@ -set(REQ_URL "https://github.com/tronkko/dirent/archive/refs/tags/1.23.2.zip") -set(MD5 "43514791ab73ef5ac7c490afc7c3bab2") +if(ENABLE_GITEE) + set(REQ_URL "https://gitee.com/mirrors/dirent/repository/archive/1.23.2.zip") + set(MD5 "9a1d076cd5fe6272e9f5078c67a7ca4c") +else() + set(REQ_URL "https://github.com/tronkko/dirent/archive/refs/tags/1.23.2.zip") + set(MD5 "43514791ab73ef5ac7c490afc7c3bab2") +endif() + if(MSVC) mindspore_add_pkg(dirent