From: Michal Moravec Date: Wed, 21 Feb 2018 09:49:53 +0000 (+0100) Subject: Allow MYSQL_LIB to be specified by ENV variable X-Git-Tag: v2.9.0~150^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf909ce47fe05f4966dd917e764c39bf8b5371c2;p=icinga2 Allow MYSQL_LIB to be specified by ENV variable --- 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