From d13c1471c1fb9806d37a93507c6621bcb0307712 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 6 Jun 2016 15:03:09 +0000 Subject: [PATCH] non-openssl: only check for openssl ecdh in openssl builds See also https://github.com/warmcat/libwebsockets/issues/559 Signed-off-by: Karl Palsson --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index da62dfd2..ad694cbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)