mirror of
https://github.com/curl/curl.git
synced 2026-07-26 14:17:50 +03:00
Added basic OpenSSL support in CMake scripts (Thanks to Bill Hoffman)
This commit is contained in:
parent
168fb3a8d8
commit
9a184e0bb1
3 changed files with 36 additions and 2 deletions
19
CMake/FindOpenSSL.cmake
Normal file
19
CMake/FindOpenSSL.cmake
Normal file
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue