From 0fdab21fd90acd0706eaf28688efb69551b7aef9 Mon Sep 17 00:00:00 2001 From: xuxin19 Date: Mon, 29 Apr 2024 14:49:13 +0800 Subject: [PATCH] cmake:sync LIBUV_HANDLE_BACKTRACE fix build break Signed-off-by: xuxin19 --- system/libuv/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/system/libuv/CMakeLists.txt b/system/libuv/CMakeLists.txt index a9c9626c3..205eeae7c 100644 --- a/system/libuv/CMakeLists.txt +++ b/system/libuv/CMakeLists.txt @@ -146,7 +146,17 @@ if(CONFIG_LIBUV) target_sources(libuv PRIVATE ${SRCS}) target_include_directories(libuv PRIVATE ${INCDIR}) target_compile_options(libuv PRIVATE ${CFLAGS}) - nuttx_export_header(TARGET libuv INCLUDE_DIRECTORIES ${EXPORT_INCDIR}) + + # Global FLAG + set_property( + TARGET nuttx + APPEND + PROPERTY NUTTX_COMPILE_OPTIONS + -DUV_HANDLE_BACKTRACE=CONFIG_LIBUV_HANDLE_BACKTRACE) + set_property( + TARGET nuttx + APPEND + PROPERTY NUTTX_INCLUDE_DIRECTORIES ${EXPORT_INCDIR}) # ############################################################################ # Applications Configuration