diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 99c7c2f3..aa62b7ea 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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)