Skip to content

Commit

Permalink
* NEW [cmake] Add openssl to cmake.
Browse files Browse the repository at this point in the history
Signed-off-by: wanghaemq <[email protected]>
  • Loading branch information
wanghaEMQ committed Aug 21, 2024
1 parent e5746a0 commit 694925d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

Expand Down
1 change: 1 addition & 0 deletions src/supplemental/tls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ endif ()

add_subdirectory(mbedtls)
add_subdirectory(wolfssl)
add_subdirectory(openssl)

nng_sources(tls_common.c)
nng_sources(tls_api.h)

0 comments on commit 694925d

Please sign in to comment.