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:
Markus Makela 2016-02-17 20:42:11 +02:00
parent effa2dbdae
commit 4c3f7e320e

View File

@ -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)