mirror of
https://github.com/MariaDB/server.git
synced 2025-01-25 00:04:33 +01:00
1fc49d3d1a
also * fix includes * rename cmake macros and targets to avoid name clashes
36 lines
773 B
CMake
36 lines
773 B
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})
|
|
|
|
IF(TARGET zlib)
|
|
GET_PROPERTY(ZLIB_LIBRARY_LOCATION TARGET zlib PROPERTY LOCATION)
|
|
ELSE()
|
|
SET(ZLIB_LIBRARY_LOCATION ${ZLIB_LIBRARY})
|
|
ENDIF()
|
|
|
|
IF(SSL_DEFINES MATCHES "YASSL")
|
|
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")
|
|
ENDIF()
|
|
|
|
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")
|
|
ENDIF()
|
|
|
|
MESSAGE("== Configuring MariaDB Connector/C")
|
|
ADD_SUBDIRECTORY(libmariadb)
|