Fix builds with system Connector-C

If the system Connector-C is used, we must generate a fake connector-c
target that the core can depend on.
This commit is contained in:
Markus Mäkelä 2017-03-09 12:56:13 +02:00
parent 20d89717c7
commit 454248e3ec

View File

@ -57,6 +57,10 @@ include_directories(${PCRE2_INCLUDE_DIRS})
if(NOT MARIADB_CONNECTOR_FOUND)
message(STATUS "Building MariaDB Connector-C from source.")
include(cmake/BuildMariaDBConnector.cmake)
else()
# This is required as the core depends on the `connector-c` target
add_custom_target(connector-c)
message(STATUS "Using system Connector-C")
endif()
# You can find the variables set by this in the FindCURL.cmake file