From 98f158bf3175b040db40072cbdc17e3c5097ca4d Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Mon, 1 Aug 2022 12:28:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20OpenSSL=20=E6=9C=AA?= =?UTF-8?q?=E5=BC=80=E5=90=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3rdpart/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) 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()