Skip to content

Commit 454248e

Browse files
committed
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.
1 parent 20d8971 commit 454248e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ include_directories(${PCRE2_INCLUDE_DIRS})
5757
if(NOT MARIADB_CONNECTOR_FOUND)
5858
message(STATUS "Building MariaDB Connector-C from source.")
5959
include(cmake/BuildMariaDBConnector.cmake)
60+
else()
61+
# This is required as the core depends on the `connector-c` target
62+
add_custom_target(connector-c)
63+
message(STATUS "Using system Connector-C")
6064
endif()
6165

6266
# You can find the variables set by this in the FindCURL.cmake file

0 commit comments

Comments
 (0)