Added configurable connector repo and tags
This allows different versions and repositories to be used when building the MariaDB connector.
This commit is contained in:
parent
effa2dbdae
commit
4c3f7e320e
@ -7,9 +7,15 @@
|
||||
|
||||
include(ExternalProject)
|
||||
|
||||
set(MARIADB_CONNECTOR_C_REPO "https://github.com/MariaDB/mariadb-connector-c.git"
|
||||
CACHE STRING "MariaDB Connector-C Git repository")
|
||||
|
||||
set(MARIADB_CONNECTOR_C_TAG "v2.2.1"
|
||||
CACHE STRING "MariaDB Connector-C Git tag")
|
||||
|
||||
ExternalProject_Add(connector-c
|
||||
GIT_REPOSITORY https://github.com/MariaDB/mariadb-connector-c.git
|
||||
GIT_TAG v2.2.1
|
||||
GIT_REPOSITORY ${MARIADB_CONNECTOR_C_REPO}
|
||||
GIT_TAG ${MARIADB_CONNECTOR_C_TAG}
|
||||
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/connector-c/install
|
||||
BINARY_DIR ${CMAKE_BINARY_DIR}/connector-c
|
||||
INSTALL_DIR ${CMAKE_BINARY_DIR}/connector-c/install)
|
||||
|
Loading…
x
Reference in New Issue
Block a user