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.

openssl.cmake 645 B

123456789101112131415161718
  1. if(ENABLE_GITEE)
  2. set(REQ_URL "https://gitee.com/mirrors/openssl/repository/archive/OpenSSL_1_1_1k.tar.gz")
  3. set(MD5 "d4acbcc4a5e6c31d86ede95b5d22f7a0")
  4. else()
  5. set(REQ_URL "https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_1_1k.tar.gz")
  6. set(MD5 "bdd51a68ad74618dd2519da8e0bcc759")
  7. endif()
  8. if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
  9. mindspore_add_pkg(openssl
  10. VER 1.1.0
  11. LIBS ssl crypto
  12. URL ${REQ_URL}
  13. MD5 ${MD5}
  14. CONFIGURE_COMMAND ./config no-zlib no-shared)
  15. include_directories(${openssl_INC})
  16. add_library(mindspore::ssl ALIAS openssl::ssl)
  17. add_library(mindspore::crypto ALIAS openssl::crypto)
  18. endif()