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
|
|
|
|
|
|
|
IF(SSL_DEFINES MATCHES "YASSL")
|
|
|
|
IF(WIN32)
|
|
|
|
SET(CONC_WITH_SSL "SCHANNEL")
|
2016-08-19 22:03:05 +02:00
|
|
|
ELSE()
|
2016-09-04 13:26:30 +02:00
|
|
|
SET(CONC_WITH_SSL "GNUTLS") # that's what debian wants, right?
|
2016-08-19 22:03:05 +02:00
|
|
|
ENDIF()
|
2016-09-04 13:26:30 +02:00
|
|
|
ELSE()
|
|
|
|
SET(CONC_WITH_SSL "OPENSSL")
|
2016-09-12 18:16:51 +02:00
|
|
|
SET(OPENSSL_FOUND TRUE)
|
2016-08-19 22:03:05 +02:00
|
|
|
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")
|
|
|
|
ELSE()
|
|
|
|
SET(CONC_INSTALL_LAYOUT "DEFAULT")
|
2016-08-22 16:45:46 +02:00
|
|
|
ENDIF()
|
2016-09-04 13:26:30 +02:00
|
|
|
|
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
|
|
|
|
|
|
|
#remove after merging libmariadb > v3.0.9
|
|
|
|
IF(TARGET caching_sha2_password AND CMAKE_C_FLAGS_DEBUG MATCHES "-Werror")
|
|
|
|
SET_PROPERTY(TARGET caching_sha2_password APPEND_STRING PROPERTY COMPILE_FLAGS -Wno-unused-function)
|
|
|
|
ENDIF()
|