Merge pull request #6107 from MichalMMac/master

Allow MYSQL_LIB to be specified by ENV variable
This commit is contained in:
Gunnar Beutner 2018-02-26 08:09:35 +01:00 committed by GitHub
commit e952302e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,7 @@ IF (WIN32)
FIND_LIBRARY(MYSQL_LIB NAMES mysqlclient
PATHS
$ENV{MYSQL_DIR}
$ENV{MYSQL_DIR}/lib/${libsuffixDist}
$ENV{MYSQL_DIR}/libmysql
$ENV{MYSQL_DIR}/libmysql/${libsuffixBuild}
@ -82,6 +83,7 @@ ELSE (WIN32)
FIND_LIBRARY(MYSQL_LIB NAMES ${MYSQL_CLIENT_LIBS}
PATHS
$ENV{MYSQL_DIR}
$ENV{MYSQL_DIR}/libmysql_r/.libs
$ENV{MYSQL_DIR}/lib
$ENV{MYSQL_DIR}/lib/mysql