Skip to content

Commit c8e56ff

Browse files
pangzhen1xiaomixiaoxiang781216
authored andcommitted
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]>
1 parent f526b91 commit c8e56ff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ add_executable(nuttx)
420420
add_custom_target(nuttx_post)
421421
if(CONFIG_BUILD_PROTECTED)
422422
add_executable(nuttx_user)
423+
nuttx_add_library_internal(nuttx_user)
423424
endif()
424425

425426
if(CONFIG_ALLSYMS)

libs/libc/wqueue/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919
# ##############################################################################
2020

21-
if(CONFIG_LIB_USRWORK)
21+
if(CONFIG_LIBC_USRWORK)
2222
target_sources(c PRIVATE work_usrthread.c work_queue.c work_cancel.c
2323
work_signal.c work_lock.c)
2424
endif()

0 commit comments

Comments
 (0)