@@ -55,26 +55,18 @@ IF(WIN32)
5555 ENDIF ()
5656 ENDIF ()
5757ELSEIF (APPLE )
58- # Version 3.12.4 is needed because the new build system of Xcode is not
59- # supported by cmake. 3.12.4 will force using the legacy build system.
60- # Version 3.9.2 is needed because INCLUDE_DIRECTORIES(SYSTEM ...) wasn't
61- # handled properly by the cmake Xcode generator.
62- # NOTE:
63- # cmake >= 3.19 will use the new build system by default for Xcode >= 12.x
6458 IF (CMAKE_GENERATOR STREQUAL "Xcode" )
6559 SET (APPLE_XCODE 1)
66- CMAKE_MINIMUM_REQUIRED (VERSION 3.12.4)
67- ELSE ()
68- CMAKE_MINIMUM_REQUIRED (VERSION 3.9.2)
6960 ENDIF ()
70- # If this is macOS 11, we need cmake 3.18
61+ # For macOS version >= 11 we need cmake 3.18
7162 # System libraries like
7263 # /usr/lib/libresolv.dylib
7364 # are no longer present in the file system.
7465 # cmake >= 3.18 will look for .tbd files in the SDK instead
7566 # So we end up linking with:
7667 # /Applications/Xcode.app/.../usr/lib/libresolv.tbd
77- # We must postpone the version test until we have called 'uname -r' below.
68+ # cmake >= 3.19 will use the new build system by default for Xcode >= 12.x
69+ CMAKE_MINIMUM_REQUIRED (VERSION 3.19)
7870ELSEIF (UNIX )
7971 # This is currently minimum version on all supported platforms.
8072 IF (CMAKE_VERSION VERSION_LESS 3.11.2)
@@ -515,20 +507,20 @@ IF(CMAKE_HOST_UNIX AND NOT FORCE_UNSUPPORTED_COMPILER
515507 ENDIF ()
516508 ENDIF ()
517509 ELSEIF (SOLARIS)
518- MESSAGE (STATUS "Looking for GCC 10 on Solaris." )
510+ MESSAGE (STATUS "Looking for GCC 11 on Solaris." )
519511 FIND_PROGRAM (ALTERNATIVE_GCC gcc
520512 NO_DEFAULT_PATH
521- PATHS "/usr/gcc/10 /bin" )
513+ PATHS "/usr/gcc/11 /bin" )
522514 FIND_PROGRAM (ALTERNATIVE_GPP g++
523515 NO_DEFAULT_PATH
524- PATHS "/usr/gcc/10 /bin" )
516+ PATHS "/usr/gcc/11 /bin" )
525517 IF (ALTERNATIVE_GCC AND ALTERNATIVE_GPP)
526518 SET (CMAKE_C_COMPILER ${ALTERNATIVE_GCC} )
527519 SET (CMAKE_CXX_COMPILER ${ALTERNATIVE_GPP} )
528520 MESSAGE (STATUS "Using ${ALTERNATIVE_GCC} " )
529521 MESSAGE (STATUS "Using ${ALTERNATIVE_GPP} " )
530522 ELSE ()
531- MESSAGE (WARNING "Could not find /usr/gcc/10 /bin/gcc" )
523+ MESSAGE (WARNING "Could not find /usr/gcc/11 /bin/gcc" )
532524 ENDIF ()
533525 ENDIF ()
534526 ENDIF ()
@@ -875,6 +867,7 @@ INCLUDE(zlib)
875867INCLUDE (zstd)
876868INCLUDE (lz4)
877869INCLUDE (icu)
870+ INCLUDE (libbacktrace)
878871INCLUDE (libevent)
879872INCLUDE (ssl)
880873INCLUDE (sasl)
@@ -1831,6 +1824,9 @@ IF(WITH_SYSTEM_LIBS)
18311824 UNSET (WITH_SYSTEM_LIBS CACHE )
18321825ENDIF ()
18331826
1827+ # See whether backtrace is supported.
1828+ MYSQL_CHECK_BACKTRACE()
1829+
18341830# Add bundled or system zlib.
18351831MYSQL_CHECK_ZLIB()
18361832
@@ -2278,6 +2274,7 @@ ADD_DEPENDENCIES(clang_tidy_prerequisites GenError)
22782274
22792275ADD_SUBDIRECTORY (include )
22802276ADD_SUBDIRECTORY (strings )
2277+ ADD_SUBDIRECTORY (extra/unordered_dense)
22812278ADD_SUBDIRECTORY (vio)
22822279ADD_SUBDIRECTORY (mysys)
22832280ADD_SUBDIRECTORY (libmysql)
0 commit comments