mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 18:16:48 -04:00
Welcome MySQL 8.4 What is new in MySQL8.4 since MySQL 8.0: https://dev.mysql.com/doc/refman/8.4/en/mysql-nutshell.html HINT: MySQL8.2+ supports only 64-bit platforms!!! special thanks for the majority of the work on this port: samm aka Alex S.
25 lines
1,022 B
CMake
25 lines
1,022 B
CMake
--- cmake/ssl.cmake.orig 2024-04-10 06:26:28 UTC
|
|
+++ cmake/ssl.cmake
|
|
@@ -156,7 +156,7 @@ MACRO(FIND_OPENSSL_VERSION)
|
|
# Encoded as MNNFFPPS: major minor fix patch status
|
|
FILE(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h"
|
|
OPENSSL_VERSION_NUMBER
|
|
- REGEX "^#[ ]*define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*"
|
|
+ REGEX "^#[\t ]*define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*"
|
|
)
|
|
STRING(REGEX REPLACE
|
|
"^.*OPENSSL_VERSION_NUMBER[\t ]+0x([0-9]).*$" "\\1"
|
|
@@ -566,9 +566,10 @@ FUNCTION(MYSQL_CHECK_SSL)
|
|
ENDIF()
|
|
|
|
# TODO(tdidriks): move to config.h.cmake / my_config.h
|
|
- IF("${OPENSSL_MAJOR_MINOR_FIX_VERSION}" VERSION_GREATER "1.1.0")
|
|
- ADD_DEFINITIONS(-DHAVE_TLSv13)
|
|
- ENDIF()
|
|
+ CHECK_SYMBOL_EXISTS(TLS1_3_VERSION "openssl/tls1.h" HAVE_TLS1_3_VERSION)
|
|
+ IF(HAVE_TLS1_3_VERSION)
|
|
+ #ADD_DEFINITIONS(-DHAVE_TLSv13)
|
|
+ ENDIF()
|
|
|
|
GET_TARGET_PROPERTY(foo OpenSSL::SSL INTERFACE_INCLUDE_DIRECTORIES)
|
|
MESSAGE(STATUS "OPENSSL_INCLUDE_DIR = ${foo}")
|