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:
@ -57,6 +57,10 @@ include_directories(${PCRE2_INCLUDE_DIRS})
|
|||||||
if(NOT MARIADB_CONNECTOR_FOUND)
|
if(NOT MARIADB_CONNECTOR_FOUND)
|
||||||
message(STATUS "Building MariaDB Connector-C from source.")
|
message(STATUS "Building MariaDB Connector-C from source.")
|
||||||
include(cmake/BuildMariaDBConnector.cmake)
|
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()
|
endif()
|
||||||
|
|
||||||
# You can find the variables set by this in the FindCURL.cmake file
|
# You can find the variables set by this in the FindCURL.cmake file
|
||||||
|
Reference in New Issue
Block a user