Skip to content

Commit

Permalink
Fix SSL CMake message
Browse files Browse the repository at this point in the history
  • Loading branch information
icraggs committed Apr 17, 2024
1 parent 793e957 commit 7941934
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,15 @@ if(PAHO_WITH_SSL OR PAHO_WITH_LIBRESSL)
find_package(LibreSSL REQUIRED)
set(SSL_INCLUDE_DIR ${LIBRESSL_INCLUDE_DIR} CACHE PATH "Directory containing SSL includes")
set(SSL_LIBRARY_NAME LibreSSL CACHE STRING "Name of the used SSL library")
set(SSL_ROOT_DIR ${LIBRESSL_ROOT_DIR} CACHE PATH "Directory containing SSL libraries and includes")
else()
set(OPENSSL_ROOT_DIR "" CACHE PATH "Directory containing OpenSSL libraries and includes")
find_package(OpenSSL REQUIRED)
set(SSL_INCLUDE_DIR ${OPENSSL_INCLUDE_DIR} CACHE PATH "Directory containing SSL includes")
set(SSL_LIBRARY_NAME OpenSSL CACHE STRING "Name of the used SSL library")
set(SSL_ROOT_DIR ${OPENSSL_ROOT_DIR} CACHE PATH "Directory containing SSL libraries and includes")
endif()
message("Use ${SSL_LIBRARY_NAME} at ${LIBRESSL_ROOT_DIR}")
message("Use ${SSL_LIBRARY_NAME} at ${SSL_ROOT_DIR}")
message("SSL_INCLUDE_DIR: ${SSL_INCLUDE_DIR} ${LIBRESSL_SSL_LIBRARY} ${LIBRESSL_CRYPTO_LIBRARY}")

if(PAHO_BUILD_SHARED)
Expand Down

0 comments on commit 7941934

Please sign in to comment.