Skip to content

Commit 1118d39

Browse files
committed
Add build with systemd log support
1 parent 3a2fce2 commit 1118d39

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ option(ENABLE_REUSEPORT "Build with REUSEPORT support" OFF)
5858

5959
option(ENABLE_SYSTEM_ZLIB "Build with system zlib support" OFF)
6060
option(ENABLE_SYSTEM_OPENSSL "Build with system openssl support" OFF)
61+
option(ENABLE_USE_SYSTEMD_LOG "Build with systemd log support" OFF)
6162

6263
option(ENABLE_USE_OPENSSL "Build with openssl support" ON)
6364
option(ENABLE_USE_BORINGSSL "Build with boringssl support" OFF)
@@ -125,6 +126,12 @@ endif()
125126

126127
################################################################################
127128

129+
if (ENABLE_USE_SYSTEMD_LOG)
130+
add_definitions(-DUSE_SYSTEMD_LOGGING)
131+
endif()
132+
133+
################################################################################
134+
128135
if (WIN32)
129136
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
130137

0 commit comments

Comments
 (0)