From 1118d3928c1d83a61537f1fba7d95d1198a87969 Mon Sep 17 00:00:00 2001 From: Jackarain Date: Fri, 20 Sep 2024 15:32:54 +0800 Subject: [PATCH] Add build with systemd log support --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 16c2e251d..d055967b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,7 @@ option(ENABLE_REUSEPORT "Build with REUSEPORT support" OFF) option(ENABLE_SYSTEM_ZLIB "Build with system zlib support" OFF) option(ENABLE_SYSTEM_OPENSSL "Build with system openssl support" OFF) +option(ENABLE_USE_SYSTEMD_LOG "Build with systemd log support" OFF) option(ENABLE_USE_OPENSSL "Build with openssl support" ON) option(ENABLE_USE_BORINGSSL "Build with boringssl support" OFF) @@ -125,6 +126,12 @@ endif() ################################################################################ +if (ENABLE_USE_SYSTEMD_LOG) + add_definitions(-DUSE_SYSTEMD_LOGGING) +endif() + +################################################################################ + if (WIN32) set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>")