From 589c25f57a703e2a69c7a3ec4951bbecfe2df0c3 Mon Sep 17 00:00:00 2001 From: wanghaemq Date: Fri, 26 Jul 2024 03:39:30 -0400 Subject: [PATCH] * NEW [cmake] Update cmake to load ssl when scram is enabled. Signed-off-by: wanghaemq --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 46cb3410..43f3a9f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -305,6 +305,8 @@ endif() if (NNG_ENABLE_SCRAM) add_definitions(-DSUPP_SCRAM) + find_package(OpenSSL) + target_link_libraries(nng PRIVATE OpenSSL::SSL OpenSSL::Crypto) endif () add_subdirectory(src)