From 454248e3eca6f494facded03a371c7e8d8195154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 9 Mar 2017 12:56:13 +0200 Subject: [PATCH] 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. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fe46a7232..048fa6700 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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