From bf909ce47fe05f4966dd917e764c39bf8b5371c2 Mon Sep 17 00:00:00 2001 From: Michal Moravec Date: Wed, 21 Feb 2018 10:49:53 +0100 Subject: [PATCH] Allow MYSQL_LIB to be specified by ENV variable --- third-party/cmake/FindMySQL.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third-party/cmake/FindMySQL.cmake b/third-party/cmake/FindMySQL.cmake index 77465d027..201a98259 100644 --- a/third-party/cmake/FindMySQL.cmake +++ b/third-party/cmake/FindMySQL.cmake @@ -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