cmake:sync LIBUV_HANDLE_BACKTRACE fix build break

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2024-04-29 14:49:13 +08:00 committed by Xiang Xiao
parent 9b8d8d0c4f
commit 0fdab21fd9

View File

@ -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