mindspore/cmake/external_libs/zlib.cmake

18 lines
515 B
CMake
Raw Normal View History

2021-01-23 20:20:31 +08:00
if(ENABLE_GITEE)
2020-10-16 17:10:48 +08:00
set(REQ_URL "https://gitee.com/mirrors/zlib/repository/archive/v1.2.11.tar.gz")
2021-11-16 10:15:15 +08:00
set(MD5 "b0ecd8eda7c5d6ed9b4a4187363482fe")
2020-10-16 17:10:48 +08:00
else()
set(REQ_URL "https://github.com/madler/zlib/archive/v1.2.11.tar.gz")
set(MD5 "0095d2d2d1f3442ce1318336637b695f")
2021-01-23 20:20:31 +08:00
endif()
2020-10-16 17:10:48 +08:00
2020-06-11 22:42:57 +08:00
mindspore_add_pkg(zlib
VER 1.2.11
LIBS z
2020-10-16 17:10:48 +08:00
URL ${REQ_URL}
MD5 ${MD5}
2020-06-11 22:42:57 +08:00
CMAKE_OPTION -DCMAKE_BUILD_TYPE:STRING=Release)
include_directories(${zlib_INC})
add_library(mindspore::z ALIAS zlib::z)