mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
cmake: don't include syslog files if CONFIG_SYSLOG=n
don't include syslog files if CONFIG_SYSLOG=n
This commit is contained in:
@@ -17,11 +17,21 @@
|
|||||||
# the License.
|
# the License.
|
||||||
#
|
#
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
# ##############################################################################
|
|
||||||
|
|
||||||
# Include SYSLOG Infrastructure
|
# 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)
|
if(CONFIG_SYSLOG_INTBUFFER)
|
||||||
list(APPEND SRCS syslog_intbuffer.c)
|
list(APPEND SRCS syslog_intbuffer.c)
|
||||||
|
|||||||
Reference in New Issue
Block a user