]> granicus.if.org Git - icinga2/commitdiff
FindMySQL: Search for mariadbclient by default 5888/head
authorMarkus Frosch <markus.frosch@icinga.com>
Thu, 4 Jan 2018 16:32:54 +0000 (17:32 +0100)
committerMarkus Frosch <markus.frosch@icinga.com>
Thu, 4 Jan 2018 16:37:15 +0000 (17:37 +0100)
This would look for both names and use the first found.

INSTALL.md
third-party/cmake/FindMySQL.cmake

index 2a9826034115b3cd1765dac8d453b7a55594d0bd..79e3a7aa8378bd8258527897c6ed1832e98160cc 100644 (file)
@@ -168,7 +168,7 @@ In addition to `CMAKE_INSTALL_PREFIX` here are most of the supported Icinga-spec
 The following settings can be tuned for the MySQL / MariaDB IDO feature.
 
 - `ICINGA2_WITH_MYSQL`: Determines whether the MySQL IDO module is built; defaults to `ON`
-- `MYSQL_CLIENT_LIBS`: Client implementation used (mysqlclient / mariadbclient); defaults searches for `mysqlclient`
+- `MYSQL_CLIENT_LIBS`: Client implementation used (mysqlclient / mariadbclient); defaults searches for `mysqlclient` and `mariadbclient`
 - `MYSQL_INCLUDE_DIR`: Directory containing include files for the mysqlclient; default empty -
   checking multiple paths like `/usr/include/mysql`
 
index 14cf7851443c017d0bd30995886c53f7d7c24baa..77465d027aa2f472485f010207e967fa6fe0734b 100644 (file)
@@ -75,7 +75,7 @@ IF (WIN32)
     $ENV{SystemDrive}/MySQL/*/lib/${libsuffixDist})
 ELSE (WIN32)
   IF (NOT MYSQL_CLIENT_LIBS)
-    SET(MYSQL_CLIENT_LIBS mysqlclient)
+    SET(MYSQL_CLIENT_LIBS mysqlclient mariadbclient)
   ENDIF (NOT MYSQL_CLIENT_LIBS)
 
   FILE(GLOB _macports_lib_dirs /opt/local/lib/mysql*/mysql)