mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 18:50:20 +08:00
fix #32 : 兼容新老版本mysql客户端
This commit is contained in:
parent
9db03d4f48
commit
6ef5ae0f3c
@ -1 +1 @@
|
|||||||
Subproject commit 1543d8dd9c983a02c15a3a5492b68a7ba42be9e0
|
Subproject commit 02d8b5df6a93cc84b605a548220fd552061e66c5
|
@ -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 ()
|
||||||
|
Loading…
Reference in New Issue
Block a user