mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
FindMySQL: Allow other implementations
Like mariadbclient. So the user can specify the same via -D
This commit is contained in:
parent
5c3008a4e5
commit
3b9c00c6ec
6
third-party/cmake/FindMySQL.cmake
vendored
6
third-party/cmake/FindMySQL.cmake
vendored
@ -74,11 +74,13 @@ IF (WIN32)
|
||||
$ENV{ProgramFiles}/MySQL/*/lib/${libsuffixDist}
|
||||
$ENV{SystemDrive}/MySQL/*/lib/${libsuffixDist})
|
||||
ELSE (WIN32)
|
||||
SET(MYSQL_CLIENT_LIBS mysqlclient)
|
||||
IF (NOT MYSQL_CLIENT_LIBS)
|
||||
SET(MYSQL_CLIENT_LIBS mysqlclient)
|
||||
ENDIF (NOT MYSQL_CLIENT_LIBS)
|
||||
|
||||
FILE(GLOB _macports_lib_dirs /opt/local/lib/mysql*/mysql)
|
||||
|
||||
FIND_LIBRARY(MYSQL_LIB NAMES mysqlclient
|
||||
FIND_LIBRARY(MYSQL_LIB NAMES ${MYSQL_CLIENT_LIBS}
|
||||
PATHS
|
||||
$ENV{MYSQL_DIR}/libmysql_r/.libs
|
||||
$ENV{MYSQL_DIR}/lib
|
||||
|
Loading…
x
Reference in New Issue
Block a user