MariaDB Connector C is build from source if it is not found on the system

The FindMariaDBConnector.cmake file now checks if the found library actually is
the MariaDB Connector-C library. If the found library is not the MariaDB
Connector-C, it will be built from source.
This commit is contained in:
Markus Makela
2016-02-03 11:35:01 +02:00
parent 081bacdc64
commit 2f65c3a7b8
5 changed files with 56 additions and 11 deletions

View File

@ -1,5 +1,9 @@
# Use the client libraries in the tests
include_directories(${MYSQLCLIENT_INCLUDE_DIR})
# Include the embedded library headers
subdirs(MYSQL_INCLUDE_DIR_ALL ${MYSQL_EMBEDDED_INCLUDE_DIR})
foreach(DIR ${MYSQL_INCLUDE_DIR_ALL})
include_directories(${DIR})
endforeach()
include_directories(${MYSQL_EMMBEDDED_INCLUDE_DIR}/..)
if(${ERRMSG} MATCHES "ERRMSG-NOTFOUND")
message(FATAL_ERROR "The errmsg.sys file was not found, please define the path with -DERRMSG=<path>")