From 068a54a340c7ea09d5b3be27cef05f4ab98fbeac Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 17 Jan 2020 12:33:28 +0000 Subject: [PATCH] openssl: make sure tests have -ldl v2 https://github.com/warmcat/libwebsockets/issues/1662 --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 531eb7d0f..4a62812bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1943,6 +1943,11 @@ if (LWS_HAVE_LIBCAP) list(APPEND LIB_LIST cap ) endif() +if (UNIX) + list(APPEND LIB_LIST dl) +endif() + + # Setup the linking for all libs. foreach (lib ${LWS_LIBRARIES}) target_link_libraries(${lib} ${LIB_LIST}) @@ -1960,10 +1965,6 @@ if (LWS_WITH_ZLIB) endif() endif() -if (UNIX) - list(APPEND LIB_LIST dl) -endif() - CHECK_FUNCTION_EXISTS(SSL_CTX_set1_param LWS_HAVE_SSL_CTX_set1_param) CHECK_FUNCTION_EXISTS(SSL_set_info_callback LWS_HAVE_SSL_SET_INFO_CALLBACK) CHECK_FUNCTION_EXISTS(X509_VERIFY_PARAM_set1_host LWS_HAVE_X509_VERIFY_PARAM_set1_host)