]> granicus.if.org Git - icinga2/commitdiff
Allow MYSQL_LIB to be specified by ENV variable 6107/head
authorMichal Moravec <michal.moravec@macadmin.cz>
Wed, 21 Feb 2018 09:49:53 +0000 (10:49 +0100)
committerMichal Moravec <michal.moravec@macadmin.cz>
Wed, 21 Feb 2018 09:49:53 +0000 (10:49 +0100)
third-party/cmake/FindMySQL.cmake

index 77465d027aa2f472485f010207e967fa6fe0734b..201a98259202ba030c2be0145d08ccdc8486a16b 100644 (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