You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

zlib.cmake 515 B

5 years ago
5 years ago
5 years ago
1234567891011121314151617
  1. if(ENABLE_GITEE)
  2. set(REQ_URL "https://gitee.com/mirrors/zlib/repository/archive/v1.2.11.tar.gz")
  3. set(MD5 "be6d144068d8835e86a81b3f36b66a42")
  4. else()
  5. set(REQ_URL "https://github.com/madler/zlib/archive/v1.2.11.tar.gz")
  6. set(MD5 "0095d2d2d1f3442ce1318336637b695f")
  7. endif()
  8. mindspore_add_pkg(zlib
  9. VER 1.2.11
  10. LIBS z
  11. URL ${REQ_URL}
  12. MD5 ${MD5}
  13. CMAKE_OPTION -DCMAKE_BUILD_TYPE:STRING=Release)
  14. include_directories(${zlib_INC})
  15. add_library(mindspore::z ALIAS zlib::z)