mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 04:16:35 +08:00
build: Fix libc/pwd CMakeLists.txt
This commit fixes erronous assignment of lib_pwd_globals.c previously guarded by CONFIG_LIBC_PASSWD_FILE. Original Make.defs file has this in CSRCS scope. Signed-off-by: Daniel Jasinski <jasinskidaniel95szcz@gmail.com>
This commit is contained in:
@@ -17,10 +17,12 @@
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
set(SRCS lib_getpwnam.c lib_getpwnamr.c lib_getpwuid.c lib_getpwuidr.c)
|
||||
|
||||
set(SRCS lib_getpwnam.c lib_getpwnamr.c lib_getpwuid.c lib_getpwuidr.c
|
||||
lib_pwd_globals.c)
|
||||
|
||||
if(CONFIG_LIBC_PASSWD_FILE)
|
||||
list(APPEND SRCS lib_find_pwdfile.c lib_pwd_globals.c)
|
||||
list(APPEND SRCS lib_find_pwdfile.c)
|
||||
else()
|
||||
list(APPEND SRCS lib_getpwbuf.c lib_getpwbufr.c)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user