aboutsummaryrefslogtreecommitdiff
path: root/cmake/macros/FindMySQL.cmake
diff options
context:
space:
mode:
authorleak <leak@bitmx.net>2015-02-19 10:23:37 +0100
committerleak <leak@bitmx.net>2015-03-01 14:27:20 +0100
commit46863b3afacd4c36ec62ec2b1b2e288ea2b82547 (patch)
tree0bb2630535a2edd8e236814e3d9e05e2ad1ff11a /cmake/macros/FindMySQL.cmake
parente52b46abba9250c611312a891fda0adaccce0f0c (diff)
CMake: Allow specifying the mysql location by environment variable.
Diffstat (limited to 'cmake/macros/FindMySQL.cmake')
-rw-r--r--cmake/macros/FindMySQL.cmake2
1 files changed, 2 insertions, 0 deletions
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 )