fix #32 : 兼容新老版本mysql客户端

This commit is contained in:
xiongziliang 2019-05-24 17:50:46 +08:00
parent 9db03d4f48
commit 6ef5ae0f3c
2 changed files with 2 additions and 1 deletions

@ -1 +1 @@
Subproject commit 1543d8dd9c983a02c15a3a5492b68a7ba42be9e0 Subproject commit 02d8b5df6a93cc84b605a548220fd552061e66c5

View File

@ -61,6 +61,7 @@ find_package(MYSQL QUIET)
if (MYSQL_FOUND AND ENABLE_MYSQL) if (MYSQL_FOUND AND ENABLE_MYSQL)
message(STATUS "found library:${MYSQL_LIBRARIES},ENABLE_MYSQL defined") message(STATUS "found library:${MYSQL_LIBRARIES},ENABLE_MYSQL defined")
include_directories(${MYSQL_INCLUDE_DIR}) include_directories(${MYSQL_INCLUDE_DIR})
include_directories(${MYSQL_INCLUDE_DIR}/mysql)
add_definitions(-DENABLE_MYSQL) add_definitions(-DENABLE_MYSQL)
list(APPEND LINK_LIB_LIST ${MYSQL_LIBRARIES}) list(APPEND LINK_LIB_LIST ${MYSQL_LIBRARIES})
endif () endif ()