Commit 6ef5ae0f by xiongziliang

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

parent 9db03d4f
Subproject commit 1543d8dd9c983a02c15a3a5492b68a7ba42be9e0 Subproject commit 02d8b5df6a93cc84b605a548220fd552061e66c5
...@@ -61,6 +61,7 @@ find_package(MYSQL QUIET) ...@@ -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 ()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论