mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 07:36:23 +00:00
fix(Build/Cmake): CMake now uses the Windows env vars (#3419)
* CMake wasn't able to find the enviroment variables which are noted in the Wiki e.g MYSQL_INCLUDE_DIR or MYSQL_LIBRARY. Further I added another variable for OpenSSL which is OPENSSL_ROOT_DIR. This change allows .zip installations with a custom PATH.
This commit is contained in:
@@ -154,6 +154,7 @@ find_path(MYSQL_INCLUDE_DIR
|
||||
"$ENV{ProgramFiles}/MySQL/*/include"
|
||||
"$ENV{SystemDrive}/MySQL/*/include"
|
||||
"c:/msys/local/include"
|
||||
"$ENV{MYSQL_INCLUDE_DIR}"
|
||||
DOC
|
||||
"Specify the directory containing mysql.h."
|
||||
)
|
||||
@@ -197,6 +198,7 @@ if( WIN32 )
|
||||
"$ENV{ProgramFiles}/MySQL/*/lib/opt"
|
||||
"$ENV{SystemDrive}/MySQL/*/lib/opt"
|
||||
"c:/msys/local/include"
|
||||
"$ENV{MYSQL_LIBRARY}"
|
||||
DOC "Specify the location of the mysql library here."
|
||||
)
|
||||
endif( WIN32 )
|
||||
|
||||
Reference in New Issue
Block a user