2016-09-05 08:09:16 +02:00
|
|
|
IF(NOT EXISTS ${CMAKE_SOURCE_DIR}/libmariadb/CMakeLists.txt AND GIT_EXECUTABLE)
|
|
|
|
EXECUTE_PROCESS(COMMAND "${GIT_EXECUTABLE}" submodule init
|
|
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
|
|
|
|
EXECUTE_PROCESS(COMMAND "${GIT_EXECUTABLE}" submodule update
|
|
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
|
|
|
|
ENDIF()
|
|
|
|
IF(NOT EXISTS ${CMAKE_SOURCE_DIR}/libmariadb/CMakeLists.txt)
|
|
|
|
MESSAGE(FATAL_ERROR "No MariaDB Connector/C! Run
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
Then restart the build.
|
|
|
|
")
|
|
|
|
ENDIF()
|
|
|
|
|
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})
|
|
|
|
|
|
|
|
IF(TARGET zlib)
|
|
|
|
GET_PROPERTY(ZLIB_LIBRARY_LOCATION TARGET zlib PROPERTY LOCATION)
|
2016-08-19 22:03:05 +02:00
|
|
|
ELSE()
|
2016-09-04 13:26:30 +02:00
|
|
|
SET(ZLIB_LIBRARY_LOCATION ${ZLIB_LIBRARY})
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
MESSAGE("== Configuring MariaDB Connector/C")
|
|
|
|
ADD_SUBDIRECTORY(libmariadb)
|