fix bug in mac

This commit is contained in:
xiongziliang 2017-05-11 17:09:00 +08:00
parent d486ad9db2
commit 1a6840d3be

View File

@ -17,7 +17,7 @@
include(CheckCXXSourceCompiles) include(CheckCXXSourceCompiles)
if(WIN32) if(WIN32)
find_path(MYSQL_INCLUDE_DIR mysql.h find_path(MYSQL_INCLUDE_DIR mysql/mysql.h
PATHS PATHS
$ENV{MYSQL_INCLUDE_DIR} $ENV{MYSQL_INCLUDE_DIR}
$ENV{MYSQL_DIR}/include $ENV{MYSQL_DIR}/include
@ -26,7 +26,7 @@ if(WIN32)
$ENV{ProgramW6432}/MySQL/*/include $ENV{ProgramW6432}/MySQL/*/include
) )
else(WIN32) else(WIN32)
find_path(MYSQL_INCLUDE_DIR mysql.h find_path(MYSQL_INCLUDE_DIR mysql/mysql.h
PATHS PATHS
$ENV{MYSQL_INCLUDE_DIR} $ENV{MYSQL_INCLUDE_DIR}
$ENV{MYSQL_DIR}/include $ENV{MYSQL_DIR}/include
@ -126,4 +126,4 @@ else(MYSQL_INCLUDE_DIR AND MYSQL_EMBEDDED_LIBRARIES AND HAVE_MYSQL_OPT_EMBEDDED_
message(STATUS "MySQL Embedded not found.") message(STATUS "MySQL Embedded not found.")
endif(MYSQL_INCLUDE_DIR AND MYSQL_EMBEDDED_LIBRARIES AND HAVE_MYSQL_OPT_EMBEDDED_CONNECTION) endif(MYSQL_INCLUDE_DIR AND MYSQL_EMBEDDED_LIBRARIES AND HAVE_MYSQL_OPT_EMBEDDED_CONNECTION)
mark_as_advanced(MYSQL_INCLUDE_DIR MYSQL_LIBRARIES MYSQL_EMBEDDED_LIBRARIES) mark_as_advanced(MYSQL_INCLUDE_DIR MYSQL_LIBRARIES MYSQL_EMBEDDED_LIBRARIES)