From f9e5f216b7e19128697225c20c7ca24384b14fd9 Mon Sep 17 00:00:00 2001 From: leak Date: Thu, 19 Feb 2015 10:23:37 +0100 Subject: CMake: Allow specifying the mysql location by environment variable. --- cmake/macros/FindMySQL.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmake/macros/FindMySQL.cmake') diff --git a/cmake/macros/FindMySQL.cmake b/cmake/macros/FindMySQL.cmake index 2c393463c47..990f4918d6a 100644 --- a/cmake/macros/FindMySQL.cmake +++ b/cmake/macros/FindMySQL.cmake @@ -94,6 +94,7 @@ find_path(MYSQL_INCLUDE_DIR "$ENV{ProgramFiles}/MySQL/*/include" "$ENV{SystemDrive}/MySQL/*/include" "c:/msys/local/include" + "$ENV{MYSQL_ROOT}/include" DOC "Specify the directory containing mysql.h." ) @@ -159,6 +160,7 @@ if( WIN32 ) "$ENV{ProgramFiles}/MySQL/*/lib/opt" "$ENV{SystemDrive}/MySQL/*/lib/opt" "c:/msys/local/include" + "$ENV{MYSQL_ROOT}/lib" DOC "Specify the location of the mysql library here." ) endif( WIN32 ) -- cgit v1.2.3