mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修正 OpenSSL 未开启问题
This commit is contained in:
parent
316301e910
commit
98f158bf31
@ -122,6 +122,15 @@ check_symbol_exists(sendmmsg sys/socket.h HAVE_SENDMMSG_API)
|
|||||||
check_symbol_exists(recvmmsg sys/socket.h HAVE_RECVMMSG_API)
|
check_symbol_exists(recvmmsg sys/socket.h HAVE_RECVMMSG_API)
|
||||||
|
|
||||||
set(COMPILE_DEFINITIONS)
|
set(COMPILE_DEFINITIONS)
|
||||||
|
# ToolKit 依赖 ENABLE_OPENSSL 以及 ENABLE_MYSQL
|
||||||
|
list(FIND MK_COMPILE_DEFINITIONS ENABLE_OPENSSL ENABLE_OPENSSL_INDEX)
|
||||||
|
if(NOT ENABLE_OPENSSL_INDEX EQUAL -1)
|
||||||
|
list(APPEND COMPILE_DEFINITIONS ENABLE_OPENSSL)
|
||||||
|
endif()
|
||||||
|
list(FIND MK_COMPILE_DEFINITIONS ENABLE_MYSQL ENABLE_MYSQL_INDEX)
|
||||||
|
if(NOT ENABLE_MYSQL_INDEX EQUAL -1)
|
||||||
|
list(APPEND COMPILE_DEFINITIONS ENABLE_MYSQL)
|
||||||
|
endif()
|
||||||
if(HAVE_MMSG_HDR)
|
if(HAVE_MMSG_HDR)
|
||||||
list(APPEND COMPILE_DEFINITIONS HAVE_MMSG_HDR)
|
list(APPEND COMPILE_DEFINITIONS HAVE_MMSG_HDR)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user