Skip to content

Commit

Permalink
* FIX [cmake] Add find library to find csmw.
Browse files Browse the repository at this point in the history
Signed-off-by: wangha <[email protected]>
  • Loading branch information
wanghaEMQ committed Feb 12, 2025
1 parent 3ed6d4a commit d4dd392
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/supplemental/tls/openssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ if (NNG_TLS_ENGINE STREQUAL "open")
# instance of it, instead of configuring our own.
if (TARGET openssl)
if(TLS_EXTERN_PRIVATE_KEY)
nng_link_libraries(openssl csmw csmw_desaypki)
find_library(CSMWLIB csmw PATHS ${CMAKE_SOURCE_DIR}/extern/thirdparty)
find_library(CSMWPKILIB csmw_desaypki PATHS ${CMAKE_SOURCE_DIR}/extern/thirdparty)
nng_link_libraries(openssl ${CSMWPKILIB} ${CSMWLIB})
else()
nng_link_libraries(openssl)
endif()
Expand Down

0 comments on commit d4dd392

Please sign in to comment.