fix error with cmake 3.3 when parsing string with brackets
"$ENV{PROGRAMFILES(x86)}/MySQL/*/include"
This commit is contained in:
parent
db3c77558d
commit
200ec3b48d
1 changed files with 3 additions and 2 deletions
|
@ -25,16 +25,17 @@
|
|||
# License text for the above reference.)
|
||||
|
||||
if( WIN32 )
|
||||
set(MYENV "PROGRAMFILES(X86)")
|
||||
find_path( MYSQL_INCLUDE_DIR
|
||||
NAMES "mysql.h"
|
||||
PATHS "$ENV{PROGRAMFILES}/MySQL/*/include"
|
||||
"$ENV{PROGRAMFILES(x86)}/MySQL/*/include"
|
||||
"$ENV{${MYENV}}/MySQL/*/include"
|
||||
"$ENV{SYSTEMDRIVE}/MySQL/*/include" )
|
||||
|
||||
find_library( MYSQL_LIBRARY
|
||||
NAMES "mysqlclient" "mysqlclient_r" "libmysql"
|
||||
PATHS "$ENV{PROGRAMFILES}/MySQL/*/lib"
|
||||
"$ENV{PROGRAMFILES(x86)}/MySQL/*/lib"
|
||||
"$ENV{${MYENV}}/MySQL/*/lib"
|
||||
"$ENV{SYSTEMDRIVE}/MySQL/*/lib" )
|
||||
else()
|
||||
find_path( MYSQL_INCLUDE_DIR
|
||||
|
|
Loading…
Reference in a new issue