cmake: don't include syslog files if CONFIG_SYSLOG=n

don't include syslog files if CONFIG_SYSLOG=n
This commit is contained in:
raiden00pl 2024-11-03 11:02:34 +01:00 committed by Xiang Xiao
parent 48a327d0ed
commit 6ba8c1e9f9
1 changed files with 12 additions and 2 deletions

View File

@ -17,11 +17,21 @@
# the License.
#
# ##############################################################################
# ##############################################################################
# Include SYSLOG Infrastructure
set(SRCS vsyslog.c syslog_channel.c syslog_putc.c syslog_write.c syslog_flush.c)
set(SRCS)
if(CONFIG_SYSLOG)
list(
APPEND
SRCS
vsyslog.c
syslog_channel.c
syslog_putc.c
syslog_write.c
syslog_flush.c)
endif()
if(CONFIG_SYSLOG_INTBUFFER)
list(APPEND SRCS syslog_intbuffer.c)