# Copyright (c) 2006, 2024, Oracle and/or its affiliates.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2.0,
# as published by the Free Software Foundation.
#
# This program is designed to work with certain software (including
# but not limited to OpenSSL) that is licensed under separate terms,
# as designated in a particular file or component or in included license
# documentation. The authors of MySQL hereby grant you an additional
# permission to link the program and your derivative works with the
# separately licensed software that they have either included with
# the program or referenced in the documentation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License, version 2.0, for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
MESSAGE(STATUS "Running cmake version ${CMAKE_VERSION}")
IF(WIN32)
# Load policies. This is needed in order to parse the wmic version check.
CMAKE_MINIMUM_REQUIRED(VERSION 3.5.1)
EXECUTE_PROCESS(COMMAND wmic os get version
OUTPUT_VARIABLE NT_RELEASE_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
RESULT_VARIABLE WMIC_RESULT
)
IF(WMIC_RESULT EQUAL 0)
STRING(REPLACE "\r" "" NT_RELEASE_VERSION "${NT_RELEASE_VERSION}")
STRING(REPLACE "\n" "" NT_RELEASE_VERSION "${NT_RELEASE_VERSION}")
STRING(REGEX MATCH "Version[ ]+([0-9\.]+)" V_NUM "${NT_RELEASE_VERSION}")
MESSAGE(STATUS "NT_RELEASE_VERSION is ${NT_RELEASE_VERSION}")
IF(CMAKE_MATCH_1)
IF(CMAKE_MATCH_1 VERSION_LESS "10")
MESSAGE(FATAL_ERROR
"Need at least Windows Server 2016, or Windows 10, to build")
ENDIF()
ENDIF()
ENDIF()
IF(CMAKE_GENERATOR MATCHES "Visual Studio" AND CMAKE_GENERATOR MATCHES "2019")
IF(CMAKE_VERSION MATCHES "MSVC")
# It is the bundled version, ignore version check,
# (although this seems to be buggy too).
ELSE()
# Bug in msbuild, install the latest in the 3.15 series as a workaround.
# https://gitlab.kitware.com/cmake/cmake/issues/19303
# custom commands are re-built every time
CMAKE_MINIMUM_REQUIRED(VERSION 3.15.3)
ENDIF()
ENDIF()
ELSEIF(APPLE)
# Version 3.12.4 is needed because the new build system of Xcode is not
# supported by cmake. 3.12.4 will force using the legacy build system.
# Version 3.9.2 is needed because INCLUDE_DIRECTORIES(SYSTEM ...) wasn't
# handled properly by the cmake Xcode generator.
# NOTE:
# cmake >= 3.19 will use the new build system by default for Xcode >= 12.x
IF(CMAKE_GENERATOR STREQUAL "Xcode")
SET(APPLE_XCODE 1)
CMAKE_MINIMUM_REQUIRED(VERSION 3.12.4)
ELSE()
CMAKE_MINIMUM_REQUIRED(VERSION 3.9.2)
ENDIF()
# If this is macOS 11, we need cmake 3.18
# System libraries like
# /usr/lib/libresolv.dylib
# are no longer present in the file system.
# cmake >= 3.18 will look for .tbd files in the SDK instead
# So we end up linking with:
# /Applications/Xcode.app/.../usr/lib/libresolv.tbd
# We must postpone the version test until we have called 'uname -r' below.
ELSEIF(UNIX)
# This is currently minimum version on all supported platforms.
IF(CMAKE_VERSION VERSION_LESS 3.14.6)
# Default cmake is 2.8.12.2 on RedHat
IF(EXISTS "/etc/redhat-release")
MESSAGE(WARNING "Please use cmake3 rather than cmake on this platform")
FIND_PROGRAM(MY_CMAKE3 cmake3 /bin /usr/bin /usr/local/bin)
IF(MY_CMAKE3)
MESSAGE(STATUS "Found ${MY_CMAKE3}")
ELSE()
MESSAGE(STATUS "Please install cmake3 (yum install cmake3)")
ENDIF()
ELSE()
# On SunOS /opt/csw/bin/cmake is (most likely) too old.
FIND_PROGRAM(MY_UNAME uname /bin /usr/bin /usr/local/bin /sbin)
IF(MY_UNAME)
EXECUTE_PROCESS(COMMAND uname -s OUTPUT_VARIABLE MY_HOST_SYSTEM_NAME)
IF(MY_HOST_SYSTEM_NAME MATCHES "SunOS")
FIND_PROGRAM(MY_CMAKE cmake /usr/bin
NO_CMAKE_ENVIRONMENT_PATH
NO_SYSTEM_ENVIRONMENT_PATH
)
IF(MY_CMAKE)
MESSAGE(STATUS "Found ${MY_CMAKE}")
EXECUTE_PROCESS(COMMAND ${MY_CMAKE} --version)
ELSE()
MESSAGE(STATUS "Please install /usr/bin/cmake ")
ENDIF()
ENDIF()
ENDIF()
ENDIF()
ENDIF()
ENDIF()
# CMake 3.5 is needed for TARGET_SOURCES(... $<TARGET_OBJECTS:${LIB}_objlib>)
# CMake 3.7 is needeed for VERSION_GREATER_EQUAL
# For the set of currently supported platforms, we can bump up to:
CMAKE_MINIMUM_REQUIRED(VERSION 3.14.6)
# Will set GIT_EXECUTABLE and GIT_FOUND
FIND_PACKAGE(Git)
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
# First, decide about build type (debug or release)
# If cmake is invoked with -DCMAKE_BUILD_TYPE,
# respect user wishes and do not (re)define CMAKE_BUILD_TYPE. If WITH_DEBUG
# is given, set CMAKE_BUILD_TYPE = Debug. Otherwise, use Relwithdebinfo.
IF(DEFINED CMAKE_BUILD_TYPE)
SET(HAVE_CMAKE_BUILD_TYPE TRUE)
ENDIF()
OPTION(WITH_DEBUG "Use dbug/safemutex" OFF)
OPTION(CHECK_ERRMSG_FORMAT "Check printf format for English error messages" OFF)
# Use a default manufacturer if no manufacturer was identified.
SET(MANUFACTURER_DOCSTRING
"Set the entity that appears as the manufacturer of packages that support a manufacturer field.")
IF(NOT DEFINED MANUFACTURER)
SET(MANUFACTURER "Built from Source" CACHE STRING ${MANUFACTURER_DOCSTRING})
MARK_AS_ADVANCED(MANUFACTURER)
ENDIF()
# MAX_INDEXES - Set the maximum number of indexes per table, default 64U
IF (NOT MAX_INDEXES)
SET(MAX_INDEXES 64U)
ELSEIF(MAX_INDEXES MATCHES "^[0-9]+[Uu]?$")
# MAX_INDEXES should be unsigned, so add the U suffix if it's missing.
STRING(REGEX REPLACE "^([0-9]+).*$" "\\1U" MAX_INDEXES "${MAX_INDEXES}")
MESSAGE(STATUS "Configuring with MAX_INDEXES = ${MAX_INDEXES}")
ELSE()
MESSAGE(FATAL_ERROR "MAX_INDEXES should be an unsigned integer.")
ENDIF(NOT MAX_INDEXES)
IF(MAX_INDEXES GREATER 255)
MESSAGE(FATAL_ERROR "MAX_INDEXES values greater than 255 is not supported!")
ELSEIF(MAX_INDEXES LESS 64)
# Per documentation, ignore values less than 64 and use the default instead.
MESSAGE(WARNING "MAX_INDEXES option ignored because it is less than 64.")
SET(MAX_INDEXES 64U)
ENDIF()
# We choose to provide WITH_DEBUG as alias to standard CMAKE_BUILD_TYPE=Debug
# which turns out to be not trivial, as this involves synchronization
# between CMAKE_BUILD_TYPE and WITH_DEBUG. Besides, we have to deal with cases
# where WITH_DEBUG is reset from ON to OFF and here we need to reset
# CMAKE_BUILD_TYPE to either none or default RelWithDebInfo
SET(BUILDTYPE_DOCSTRING
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel")
IF(WITH_DEBUG)
SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING ${BUILDTYPE_DOCSTRING} FORCE)
SET(OLD_WITH_DEBUG 1 CACHE INTERNAL "" FORCE)
ELSEIF(NOT HAVE_CMAKE_BUILD_TYPE OR OLD_WITH_DEBUG)
IF(CMAKE_BUILD_TYPE MATCHES "Debug" OR NOT HAVE_CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
${BUILDTYPE_DOCSTRING} FORCE)
ENDIF()
SET(OLD_WITH_DEBUG 0 CACHE INTERNAL "" FORCE)
ENDIF()
STRING(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_UPPER)
IF(CMAKE_GENERATOR MATCHES "Visual Studio [1-9][0-9].*" AND
CMAKE_GENERATOR_TOOLSET STREQUAL "")
# Switch to 64 bit toolset on Windows (32 bit is default).
# This is recommended as the 32 bit linker will run into address space issues
# and not exit for long time.
SET(CMAKE_GENERATOR_TOOLSET "host=x64")
ENDIF()
# On Linux el7/el8/el9 the default gcc is too old,
# see if devtoolset/gcc-
没有合适的资源?快使用搜索试试~ 我知道了~
MySQL8.4.0 LTS(mysql-8.4.0.zip)
共2000个文件
h:1049个
c:408个
java:240个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 42 浏览量
2024-05-18
18:01:25
上传
评论
收藏 456.18MB ZIP 举报
温馨提示
MySQL Community Server 8.4.0 LTS(mysql-8.4.0.zip),Source Code适用于Windows 。
资源推荐
资源详情
资源评论
收起资源包目录
MySQL8.4.0 LTS(mysql-8.4.0.zip) (2000个子文件)
php-upb.c 554KB
zstd_compress.c 305KB
elf.c 187KB
zstd_v07.c 178KB
zstd_v06.c 160KB
http.c 152KB
zstd_v05.c 150KB
openssl.c 147KB
ftp.c 133KB
zstd_v04.c 130KB
sectransp.c 125KB
zstd_v02.c 123KB
url.c 120KB
dwarf.c 114KB
lz4.c 111KB
zstd_v03.c 109KB
zstd_lazy.c 100KB
zstd_decompress.c 97KB
zstd_decompress_block.c 97KB
schannel.c 97KB
setopt.c 93KB
cred.c 90KB
lz4frame.c 87KB
deflate.c 80KB
zstdmt_compress.c 79KB
core.c 76KB
huf_decompress.c 72KB
lz4hc.c 68KB
zstd_v01.c 68KB
zstd_opt.c 66KB
vtls.c 58KB
smtp.c 57KB
huf_compress.c 56KB
transfer.c 55KB
inflate.c 55KB
divsufsort.c 53KB
urlapi.c 53KB
readline.c 51KB
gtls.c 50KB
cf-h2-proxy.c 47KB
telnet.c 44KB
zdict.c 43KB
wolfssl.c 43KB
message.c 43KB
trees.c 42KB
cover.c 42KB
map.c 42KB
connect.c 42KB
tftp.c 41KB
terminal.c 40KB
mbedtls.c 39KB
bearssl.c 39KB
ws.c 38KB
cbor.c 37KB
zstd_fast.c 36KB
def.c 36KB
easy.c 35KB
zstd_double_fast.c 34KB
x509asn1.c 33KB
smb.c 33KB
xxhash.c 33KB
refresh.c 33KB
rtsp.c 32KB
crc32.c 31KB
mprintf.c 31KB
tty.c 31KB
ftplistparser.c 30KB
formdata.c 30KB
asyn-ares.c 29KB
ldap.c 29KB
fastcover.c 28KB
strerror.c 28KB
zstd_compress_superblock.c 28KB
zstd_ldm.c 28KB
cbor_stream_decode_test.c 28KB
history.c 27KB
cred.c 27KB
schannel_verify.c 27KB
winhello.c 26KB
assert.c 25KB
vi.c 25KB
infcover.c 24KB
krb5.c 24KB
sendf.c 24KB
http_aws_sigv4.c 24KB
fse_compress.c 24KB
cbor_serialize_test.c 23KB
mqtt.c 23KB
u2f.c 23KB
socks_sspi.c 23KB
rustls.c 22KB
infback.c 22KB
cfilters.c 21KB
progress.c 21KB
array.c 21KB
map.c 21KB
largeblob.c 21KB
filecomplete.c 21KB
gzread.c 20KB
socks_gssapi.c 20KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
YunFeiDong
- 粉丝: 151
- 资源: 3936
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功