mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
FindMySQL: Search for mariadbclient by default
This would look for both names and use the first found.
This commit is contained in:
parent
f4c5c8d78a
commit
fb0cc79de6
@ -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.
|
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`
|
- `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 -
|
- `MYSQL_INCLUDE_DIR`: Directory containing include files for the mysqlclient; default empty -
|
||||||
checking multiple paths like `/usr/include/mysql`
|
checking multiple paths like `/usr/include/mysql`
|
||||||
|
|
||||||
|
2
third-party/cmake/FindMySQL.cmake
vendored
2
third-party/cmake/FindMySQL.cmake
vendored
@ -75,7 +75,7 @@ IF (WIN32)
|
|||||||
$ENV{SystemDrive}/MySQL/*/lib/${libsuffixDist})
|
$ENV{SystemDrive}/MySQL/*/lib/${libsuffixDist})
|
||||||
ELSE (WIN32)
|
ELSE (WIN32)
|
||||||
IF (NOT MYSQL_CLIENT_LIBS)
|
IF (NOT MYSQL_CLIENT_LIBS)
|
||||||
SET(MYSQL_CLIENT_LIBS mysqlclient)
|
SET(MYSQL_CLIENT_LIBS mysqlclient mariadbclient)
|
||||||
ENDIF (NOT MYSQL_CLIENT_LIBS)
|
ENDIF (NOT MYSQL_CLIENT_LIBS)
|
||||||
|
|
||||||
FILE(GLOB _macports_lib_dirs /opt/local/lib/mysql*/mysql)
|
FILE(GLOB _macports_lib_dirs /opt/local/lib/mysql*/mysql)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user