support for windows msvc compile, download dirent from gitee mirrors

This commit is contained in:
qiuzhongya 2022-10-12 09:58:56 +08:00
parent ab8485f036
commit bd2a545d1b
1 changed files with 8 additions and 2 deletions

View File

@ -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