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


The following commit(s) were added to refs/heads/master by this push:
     new c8e56ff63a CMake: fix CMake compile errors during the protected build 
mode
c8e56ff63a is described below

commit c8e56ff63a3258c507a4b8109570ce03833ea464
Author: pangzhen1 <[email protected]>
AuthorDate: Fri Jul 26 18:37:59 2024 +0800

    CMake: fix CMake compile errors during the protected build mode
    
    There are 2 CMake compile errors during the protected build mode. One is 
forget to add library for nuttx_user, another is the wrong macro used when 
compile wqueue.
    
    Signed-off-by: pangzhen1 <[email protected]>
---
 CMakeLists.txt                  | 1 +
 libs/libc/wqueue/CMakeLists.txt | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 993c3881dc..fa902f6a35 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -420,6 +420,7 @@ add_executable(nuttx)
 add_custom_target(nuttx_post)
 if(CONFIG_BUILD_PROTECTED)
   add_executable(nuttx_user)
+  nuttx_add_library_internal(nuttx_user)
 endif()
 
 if(CONFIG_ALLSYMS)
diff --git a/libs/libc/wqueue/CMakeLists.txt b/libs/libc/wqueue/CMakeLists.txt
index 673c9d06fe..de316df159 100644
--- a/libs/libc/wqueue/CMakeLists.txt
+++ b/libs/libc/wqueue/CMakeLists.txt
@@ -18,7 +18,7 @@
 #
 # 
##############################################################################
 
-if(CONFIG_LIB_USRWORK)
+if(CONFIG_LIBC_USRWORK)
   target_sources(c PRIVATE work_usrthread.c work_queue.c work_cancel.c
                            work_signal.c work_lock.c)
 endif()

Reply via email to