Skip to content

Commit

Permalink
CMake: fix CMake compile errors during the protected build mode
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pangzhen1xiaomi authored and xiaoxiang781216 committed Aug 28, 2024
1 parent f526b91 commit c8e56ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion libs/libc/wqueue/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit c8e56ff

Please sign in to comment.