2
0

FindOpenSSL.cmake 455 B

12345678910111213141516171819
  1. # Extension of the standard FindOpenSSL.cmake
  2. # Adds OPENSSL_INCLUDE_DIRS and libeay32
  3. include("${CMAKE_ROOT}/Modules/FindOpenSSL.cmake")
  4. # Bill Hoffman told that libeay32 is necessary for him:
  5. find_library(SSL_LIBEAY NAMES libeay32)
  6. if(OPENSSL_FOUND)
  7. if(SSL_LIBEAY)
  8. list(APPEND OPENSSL_LIBRARIES ${SSL_LIBEAY})
  9. else()
  10. set(OPENSSL_FOUND FALSE)
  11. endif()
  12. endif()
  13. if(OPENSSL_FOUND)
  14. set(OPENSSL_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR})
  15. endif()