From 1a6840d3be04a1135d056bce1a5a13c568f95417 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 11 May 2017 17:09:00 +0800 Subject: [PATCH] fix bug in mac --- cmake/FindMYSQL.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/FindMYSQL.cmake b/cmake/FindMYSQL.cmake index 86da9f5f..f9c82627 100644 --- a/cmake/FindMYSQL.cmake +++ b/cmake/FindMYSQL.cmake @@ -17,7 +17,7 @@ include(CheckCXXSourceCompiles) if(WIN32) - find_path(MYSQL_INCLUDE_DIR mysql.h + find_path(MYSQL_INCLUDE_DIR mysql/mysql.h PATHS $ENV{MYSQL_INCLUDE_DIR} $ENV{MYSQL_DIR}/include @@ -26,7 +26,7 @@ if(WIN32) $ENV{ProgramW6432}/MySQL/*/include ) else(WIN32) - find_path(MYSQL_INCLUDE_DIR mysql.h + find_path(MYSQL_INCLUDE_DIR mysql/mysql.h PATHS $ENV{MYSQL_INCLUDE_DIR} $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.") 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) \ No newline at end of file +mark_as_advanced(MYSQL_INCLUDE_DIR MYSQL_LIBRARIES MYSQL_EMBEDDED_LIBRARIES)