GetSSL.cmake 502 B

123456789101112131415161718
  1. cmake_minimum_required ( VERSION 3.17 FATAL_ERROR )
  2. if (CMAKE_CROSSCOMPILING AND CMAKE_SYSTEM_NAME STREQUAL Windows)
  3. message (STATUS "will NOT do cross-compile OpenSSL for windows")
  4. return()
  5. endif()
  6. include ( GetVCPKG )
  7. if (NOT VCPKG)
  8. return()
  9. endif()
  10. message ( STATUS "executing ${VCPKG} install ${vcpkg_params} openssl" )
  11. execute_process (
  12. COMMAND "${VCPKG}" install ${vcpkg_params} openssl
  13. RESULT_VARIABLE OPENSSL_INSTALL_RESULT
  14. )
  15. message ( STATUS "exitcode is ${OPENSSL_INSTALL_RESULT}" )