diff --git a/3rdpart/CMakeLists.txt b/3rdpart/CMakeLists.txt index c12316fd..bb9fcd82 100644 --- a/3rdpart/CMakeLists.txt +++ b/3rdpart/CMakeLists.txt @@ -122,6 +122,15 @@ check_symbol_exists(sendmmsg sys/socket.h HAVE_SENDMMSG_API) check_symbol_exists(recvmmsg sys/socket.h HAVE_RECVMMSG_API) 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) list(APPEND COMPILE_DEFINITIONS HAVE_MMSG_HDR) endif()