diff --git a/cmake/ssl.cmake b/cmake/ssl.cmake index 1bd46bc0f39..646aa37a91c 100644 --- a/cmake/ssl.cmake +++ b/cmake/ssl.cmake @@ -113,7 +113,8 @@ MACRO (MYSQL_CHECK_SSL) ) IF(NOT OPENSSL_ROOT_DIR) IF(WITH_SSL_PATH) - SET(OPENSSL_ROOT_DIR ${WITH_SSL_PATH}) + # workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/22945 + SET(OPENSSL_ROOT_DIR ${WITH_SSL_PATH} ${WITH_SSL_PATH}/lib64) ENDIF() ENDIF() FIND_PACKAGE(OpenSSL)