aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSascha Kuehndel (InuSasha) <dev@inusasha.de>2018-01-05 18:14:12 +0100
committerSascha Kuehndel (InuSasha) <dev@inusasha.de>2018-01-31 19:07:50 +0100
commit35c299575feaf12dd09e9571e981347436063806 (patch)
treed1d8fb653000976507fa3790e34673c50f77c149 /CMakeLists.txt
parente1e969b866dfd88309241dce72c6793619b0f4e1 (diff)
sql-client: add support for mariadb-client
mariadb is a place-in for mysql. only, the search pathes and the include path are changed.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 08bebea13a..150fe9744c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -151,7 +151,6 @@ set(optional_deps Alsa
LCMS2
MDNS
MicroHttpd
- MySqlClient
PulseAudio
Python
SmbClient
@@ -179,6 +178,17 @@ core_optional_dep(${optional_deps})
core_require_dyload_dep(${required_dyload})
core_optional_dyload_dep(${dyload_optional})
+if(ENABLE_MARIADBCLIENT AND NOT ENABLE_MARIADBCLIENT STREQUAL AUTO AND ENABLE_MYSQLCLIENT AND NOT ENABLE_MYSQLCLIENT STREQUAL AUTO)
+ MESSAGE(FATAL_ERROR "You can not use MySql and MariaDB at the same time. Disable one by adding -DENABLE_MYSQLCLIENT=OFF or -DENABLE_MARIADBCLIENT=OFF.")
+elseif(ENABLE_MYSQLCLIENT AND NOT ENABLE_MYSQLCLIENT STREQUAL AUTO)
+ set(ENABLE_MARIADBCLIENT OFF CACHE BOOL "")
+endif()
+
+core_optional_dep(MariaDBClient)
+if(NOT MARIADBCLIENT_FOUND)
+ core_optional_dep(MySqlClient)
+endif()
+
if(NOT UDEV_FOUND)
core_optional_dep(LibUSB)
endif()