MDEV-27540 Different OpenSSL versions mix up in build depending on cmake options

list ${OPENSSL_ROOT_DIR}/lib64 explicitly, because
cmake below version 3.23.0 won't search there.
This commit is contained in:
Sergei Golubchik 2022-01-20 15:48:08 +01:00
parent b043e1098e
commit 28d44abd99

View file

@ -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)