You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/31 09:55:24 UTC

(nuttx) 04/04: cmake(bugfix):fix libc sysclog CMake build typo

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 6ee73bc199b11a79a6553525faca30088250450b
Author: xuxin19 <xu...@xiaomi.com>
AuthorDate: Thu Oct 31 16:10:21 2024 +0800

    cmake(bugfix):fix libc sysclog CMake build typo
    
    Signed-off-by: xuxin19 <xu...@xiaomi.com>
---
 libs/libc/syslog/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libs/libc/syslog/CMakeLists.txt b/libs/libc/syslog/CMakeLists.txt
index e583e84d69..8837e59661 100644
--- a/libs/libc/syslog/CMakeLists.txt
+++ b/libs/libc/syslog/CMakeLists.txt
@@ -20,4 +20,6 @@
 #
 # ##############################################################################
 
-target_sources(c PRIVATE lib_setlogmask.c lib_syslog.c)
+if(CONFIG_SYSLOG)
+  target_sources(c PRIVATE lib_setlogmask.c lib_syslog.c)
+endif()