mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
9e1fb104a3
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF39AEP5WyjM2MAMF8WVvJMdM0dgFAmck77AACgkQ8WVvJMdM 0dgccQ/+Lls8fWt4D+gMPP7x+drJSO/IE/gZFt3ugbWF+/p3B2xXAs5AAE83wxEh QSbp4DCkb/9PnuakhLmzg0lFbxMUlh4rsJ1YyiuLB2J+YgKbAc36eQQf+rtYSipd DT5uRk36c9wOcOXo/mMv4APEvpPXBIBdIL4VvpKFbIOE7xT24Sp767zWXdXqrB1f JgOQdM2ct+bvSPC55oZ5p1kqyxwvd6K6+3RB3CIpwW9zrVSLg7enT3maLjj/761s jvlRae+Cv+r+Hit9XpmEH6n2FYVgIJ3o3WhdAHwN0kxKabXYTg7OCB7QxDZiUHI9 C/5goKmKaPB1PCQyuTQyLSyyK9a8nPfgn6tqw/p/ZKDQhKT9sWJv/5bSWecrVndx LLYifSTrFC/eXLzgPvCnNv/U8SjsZaAdMIKS681+qDJ0P5abghUIlGnMYTjYXuX1 1B6Vrr0bdrQ3V1CLB3tpkRjpUvicrsabtuAUAP65QnEG2G9UJXklOer+DE291Gsl f1I0o6C1zVGAOkUUD3QEYaHD8w7hlvyfKme5oXKUm3DOjaAar5UUKLdr6prxRZL4 ebhmGEy42Mf8fBYoeohIxmxgvv6h2Xd9xCukgPp8hFpqJGw8abg7JNZTTKH4h2IY J51RpD10h4eoi6WRn3opEcjexTGvZ+xNR7yYO5WxWw6VIre9IUA= =s+WW -----END PGP SIGNATURE----- Merge tag '11.4' into 11.6 MariaDB 11.4.4 release
71 lines
2 KiB
CMake
71 lines
2 KiB
CMake
SET(OPT CONC_)
|
|
|
|
IF (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
SET(CONC_WITH_RTC ON)
|
|
ENDIF()
|
|
|
|
SET(CONC_WITH_SIGNCODE ${SIGNCODE})
|
|
SET(SIGN_OPTIONS ${SIGNTOOL_PARAMETERS})
|
|
SET(CONC_WITH_EXTERNAL_ZLIB ON)
|
|
|
|
CHECK_INCLUDE_FILES (threads.h HAVE_THREADS_H)
|
|
IF(HAVE_THREADS_H)
|
|
SET(CLIENT_PLUGIN_PARSEC DYNAMIC)
|
|
ENDIF()
|
|
|
|
IF(NOT CONC_WITH_SSL)
|
|
IF(SSL_DEFINES MATCHES "WOLFSSL")
|
|
IF(WIN32)
|
|
SET(CONC_WITH_SSL "SCHANNEL")
|
|
ELSE()
|
|
SET(CONC_WITH_SSL "GNUTLS") # that's what debian wants, right?
|
|
ENDIF()
|
|
ELSE()
|
|
SET(CONC_WITH_SSL "OPENSSL")
|
|
SET(OPENSSL_FOUND TRUE)
|
|
ENDIF()
|
|
ENDIF()
|
|
|
|
SET(CONC_WITH_CURL OFF)
|
|
SET(CONC_WITH_MYSQLCOMPAT ON)
|
|
|
|
IF (INSTALL_LAYOUT STREQUAL "RPM")
|
|
SET(CONC_INSTALL_LAYOUT "RPM")
|
|
ELSEIF (INSTALL_LAYOUT STREQUAL "DEB")
|
|
SET(CONC_INSTALL_LAYOUT "DEB")
|
|
ELSE()
|
|
SET(CONC_INSTALL_LAYOUT "DEFAULT")
|
|
ENDIF()
|
|
|
|
IF(WITH_BOOST_CONTEXT)
|
|
SET(CONC_WITH_BOOST_CONTEXT ON)
|
|
ENDIF()
|
|
|
|
SET(PLUGIN_INSTALL_DIR ${INSTALL_PLUGINDIR})
|
|
SET(MARIADB_UNIX_ADDR ${MYSQL_UNIX_ADDR})
|
|
|
|
SET(CLIENT_PLUGIN_PVIO_NPIPE STATIC)
|
|
SET(CLIENT_PLUGIN_PVIO_SHMEM STATIC)
|
|
SET(CLIENT_PLUGIN_PVIO_SOCKET STATIC)
|
|
|
|
MESSAGE("== Configuring MariaDB Connector/C")
|
|
ADD_SUBDIRECTORY(libmariadb)
|
|
|
|
IF(MSVC AND TARGET mariadb_obj AND TARGET mariadbclient)
|
|
# With MSVC, do not produce LTCG-compiled static client libraries.
|
|
# They are not usable by end-users, being tied to exact compiler version
|
|
MAYBE_DISABLE_IPO(mariadb_obj)
|
|
MAYBE_DISABLE_IPO(mariadbclient)
|
|
ENDIF()
|
|
|
|
IF(UNIX)
|
|
INSTALL(CODE "EXECUTE_PROCESS(
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${INSTALL_BINDIR})
|
|
EXECUTE_PROCESS(
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink mariadb_config ${INSTALL_BINDIR}/mariadb-config
|
|
WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX})"
|
|
COMPONENT Development)
|
|
ENDIF()
|
|
|
|
GET_DIRECTORY_PROPERTY(MARIADB_CONNECTOR_C_VERSION DIRECTORY libmariadb DEFINITION CPACK_PACKAGE_VERSION)
|
|
MESSAGE1(MARIADB_CONNECTOR_C_VERSION "MariaDB Connector/C ${MARIADB_CONNECTOR_C_VERSION}")
|