This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit c844c9191555fc2789964a19ba074a7340898268 Author: xuxin19 <[email protected]> AuthorDate: Fri Jan 10 18:30:46 2025 +0800 netutils/netlib: build netlib_getifstatistics.c with CMake. The Makefile builds netlib_getifstatistics.c when CONFIG_NETDEV_STATISTICS is set, but CMakeLists.txt never listed it, so CMake builds failed to link netlib_getifstatistics(). Signed-off-by: xuxin19 <[email protected]> Assisted-by: Kiro:claude-opus-4 --- netutils/netlib/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netutils/netlib/CMakeLists.txt b/netutils/netlib/CMakeLists.txt index bfea011a5..6463c15bd 100644 --- a/netutils/netlib/CMakeLists.txt +++ b/netutils/netlib/CMakeLists.txt @@ -97,6 +97,10 @@ if(CONFIG_NETUTILS_NETLIB) endif() endif() + if(CONFIG_NETDEV_STATISTICS) + list(APPEND SRCS netlib_getifstatistics.c) + endif() + # Netfilter connection support if(CONFIG_NETLINK_NETFILTER)
