diff options
author | Benoit Neil <suky0001@free.fr> | 2009-04-02 23:12:22 +0000 |
---|---|---|
committer | Benoit Neil <suky0001@free.fr> | 2009-04-02 23:12:22 +0000 |
commit | 9a184e0bb149631ee5e080aecb609eef2e7869f1 (patch) | |
tree | 39663609e48beb0a7bd1a1daa8e5b5bd0a56c991 /CMake | |
parent | 168fb3a8d89bd83c926f3fa2314e064294ebff0b (diff) |
Added basic OpenSSL support in CMake scripts (Thanks to Bill Hoffman)
Diffstat (limited to 'CMake')
-rw-r--r-- | CMake/FindOpenSSL.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CMake/FindOpenSSL.cmake b/CMake/FindOpenSSL.cmake new file mode 100644 index 000000000..6eea6ff24 --- /dev/null +++ b/CMake/FindOpenSSL.cmake @@ -0,0 +1,19 @@ +# Extension of the standard FindOpenSSL.cmake +# Adds OPENSSL_INCLUDE_DIRS and libeay32 +INCLUDE("${CMAKE_ROOT}/Modules/FindOpenSSL.cmake") + +# Bill Hoffman told that libeay32 is necessary for him: +FIND_LIBRARY(SSL_LIBEAY NAMES libeay32) + +IF(OPENSSL_FOUND) + IF(SSL_LIBEAY) + LIST(APPEND OPENSSL_LIBRARIES ${SSL_LIBEAY}) + ELSE() + SET(OPENSSL_FOUND FALSE) + ENDIF() +ENDIF() + + +IF(OPENSSL_FOUND) + SET(OPENSSL_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR}) +ENDIF() |