diff options
author | leak <leak@bitmx.net> | 2015-02-19 10:23:37 +0100 |
---|---|---|
committer | leak <leak@bitmx.net> | 2015-02-19 10:23:37 +0100 |
commit | f9e5f216b7e19128697225c20c7ca24384b14fd9 (patch) | |
tree | bef1a6f00db9fccb8502895db491b94a68473f60 /cmake/macros/FindMySQL.cmake | |
parent | fc847f48c803e707dc2022e920af8f056837d9ff (diff) |
CMake: Allow specifying the mysql location by environment variable.
Diffstat (limited to 'cmake/macros/FindMySQL.cmake')
-rw-r--r-- | cmake/macros/FindMySQL.cmake | 2 |
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 ) |