freebsd-ports/databases/mysqlwsrep57-server/files/patch-cmake_ssl.cmake
Li-Wen Hsu 7fe7f1d7b7 Update to 5.7.30-25.22
PR:		247348
Submitted by:	maintainer
2020-06-18 06:57:40 +00:00

15 lines
435 B
CMake

--- cmake/ssl.cmake.orig 2020-05-27 10:17:47 UTC
+++ cmake/ssl.cmake
@@ -206,6 +206,12 @@ MACRO (MYSQL_CHECK_SSL)
OPENSSL_MAJOR_VERSION STREQUAL "1"
)
SET(OPENSSL_FOUND TRUE)
+ ELSEIF(OPENSSL_INCLUDE_DIR AND
+ OPENSSL_LIBRARY AND
+ CRYPTO_LIBRARY AND
+ OPENSSL_MAJOR_VERSION STREQUAL "2"
+ )
+ SET(OPENSSL_FOUND TRUE)
ELSE()
SET(OPENSSL_FOUND FALSE)
ENDIF()