2016-09-04 13:26:30 +02:00
|
|
|
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})
|
2018-12-18 15:20:37 +01:00
|
|
|
SET(CONC_WITH_EXTERNAL_ZLIB ON)
|
2016-09-04 13:26:30 +02:00
|
|
|
|
2024-07-29 01:03:17 +02:00
|
|
|
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()
|
2016-08-19 22:03:05 +02:00
|
|
|
ELSE()
|
2024-07-29 01:03:17 +02:00
|
|
|
SET(CONC_WITH_SSL "OPENSSL")
|
|
|
|
SET(OPENSSL_FOUND TRUE)
|
2016-08-19 22:03:05 +02:00
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
2016-09-04 13:26:30 +02:00
|
|
|
|
|
|
|
SET(CONC_WITH_CURL OFF)
|
|
|
|
SET(CONC_WITH_MYSQLCOMPAT ON)
|
|
|
|
|
|
|
|
IF (INSTALL_LAYOUT STREQUAL "RPM")
|
|
|
|
SET(CONC_INSTALL_LAYOUT "RPM")
|
2020-03-27 00:47:53 +01:00
|
|
|
ELSEIF (INSTALL_LAYOUT STREQUAL "DEB")
|
|
|
|
SET(CONC_INSTALL_LAYOUT "DEB")
|
2016-09-04 13:26:30 +02:00
|
|
|
ELSE()
|
|
|
|
SET(CONC_INSTALL_LAYOUT "DEFAULT")
|
2016-08-22 16:45:46 +02:00
|
|
|
ENDIF()
|
2016-09-04 13:26:30 +02:00
|
|
|
|
2024-10-21 14:58:33 +02:00
|
|
|
IF(WITH_BOOST_CONTEXT)
|
|
|
|
SET(CONC_WITH_BOOST_CONTEXT ON)
|
|
|
|
ENDIF()
|
|
|
|
|
2016-09-14 16:09:33 +02:00
|
|
|
SET(PLUGIN_INSTALL_DIR ${INSTALL_PLUGINDIR})
|
2016-09-17 12:38:47 +02:00
|
|
|
SET(MARIADB_UNIX_ADDR ${MYSQL_UNIX_ADDR})
|
2016-09-14 16:09:33 +02:00
|
|
|
|
2018-05-19 17:13:53 +02:00
|
|
|
SET(CLIENT_PLUGIN_PVIO_NPIPE STATIC)
|
|
|
|
SET(CLIENT_PLUGIN_PVIO_SHMEM STATIC)
|
|
|
|
SET(CLIENT_PLUGIN_PVIO_SOCKET STATIC)
|
|
|
|
|
2016-09-04 13:26:30 +02:00
|
|
|
MESSAGE("== Configuring MariaDB Connector/C")
|
|
|
|
ADD_SUBDIRECTORY(libmariadb)
|
2019-03-28 12:07:20 +01:00
|
|
|
|
2024-04-10 12:37:06 +02:00
|
|
|
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()
|
|
|
|
|
2020-03-23 21:37:32 +01:00
|
|
|
IF(UNIX)
|
|
|
|
INSTALL(CODE "EXECUTE_PROCESS(
|
2020-09-12 10:33:33 +02:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${INSTALL_BINDIR})
|
2020-06-11 10:29:03 +02:00
|
|
|
EXECUTE_PROCESS(
|
2020-03-23 21:37:32 +01:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink mariadb_config ${INSTALL_BINDIR}/mariadb-config
|
|
|
|
WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX})"
|
|
|
|
COMPONENT Development)
|
2019-03-28 12:07:20 +01:00
|
|
|
ENDIF()
|
2020-05-04 23:25:20 +02:00
|
|
|
|
|
|
|
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}")
|