From 694925dcf25fab4524e31e7906688311ed3eaa7f Mon Sep 17 00:00:00 2001 From: wanghaemq Date: Wed, 21 Aug 2024 05:03:08 -0400 Subject: [PATCH] * NEW [cmake] Add openssl to cmake. Signed-off-by: wanghaemq --- CMakeLists.txt | 4 ++++ src/supplemental/tls/CMakeLists.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d3f4d9ae..c191c3e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -306,6 +306,10 @@ endif() if (NNG_ENABLE_SCRAM) add_definitions(-DSUPP_SCRAM) find_package(OpenSSL) + if (OPENSSL_FOUND) + else () + message(STATUS "OpenSSL Not found") + endif() target_link_libraries(nng PRIVATE OpenSSL::SSL OpenSSL::Crypto) endif () diff --git a/src/supplemental/tls/CMakeLists.txt b/src/supplemental/tls/CMakeLists.txt index 17d957ff..0d695b9c 100644 --- a/src/supplemental/tls/CMakeLists.txt +++ b/src/supplemental/tls/CMakeLists.txt @@ -30,6 +30,7 @@ endif () add_subdirectory(mbedtls) add_subdirectory(wolfssl) +add_subdirectory(openssl) nng_sources(tls_common.c) nng_sources(tls_api.h)