non-openssl: only check for openssl ecdh in openssl builds
See also https://github.com/warmcat/libwebsockets/issues/559 Signed-off-by: Karl Palsson <karlp@etactica.com>
This commit is contained in:
parent
a0d21c3abd
commit
d13c1471c1
1 changed files with 1 additions and 1 deletions
|
@ -826,7 +826,6 @@ if (LWS_WITH_SSL)
|
|||
|
||||
include_directories("${OPENSSL_INCLUDE_DIRS}")
|
||||
list(APPEND LIB_LIST ${OPENSSL_LIBRARIES})
|
||||
endif()
|
||||
|
||||
# older (0.98) Openssl lacks this
|
||||
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS})
|
||||
|
@ -835,6 +834,7 @@ if (LWS_WITH_SSL)
|
|||
if (LWS_SSL_SERVER_WITH_ECDH_CERT AND NOT LWS_HAVE_OPENSSL_ECDH_H)
|
||||
message(FATAL_ERROR "Missing openssl/ecdh.h, so cannot use LWS_SSL_SERVER_WITH_ECDH_CERT")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
endif(LWS_WITH_SSL)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue