matter cmake:fix matter_generate_args_tmp_file call error

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2024-03-06 11:23:37 +08:00 committed by Xiang Xiao
parent 69e497f681
commit 38d30f9984
2 changed files with 8 additions and 7 deletions

View File

@ -74,7 +74,7 @@ if(CONFIG_CRYPTO_MBEDTLS)
# ############################################################################
nuttx_add_library(mbedtls STATIC)
nuttx_export_header(TARGET mbedtls INCLUDE_DIRECTORIES ${MBEDTLS_DIR}/include)
target_sources(mbedtls PRIVATE ${CSRCS})
target_include_directories(mbedtls PRIVATE ${INCDIR})
target_compile_definitions(mbedtls PRIVATE __unix__)

View File

@ -151,12 +151,13 @@ if(CONFIG_MATTER)
include(${COMMON_CMAKE_SOURCE_DIR}/chip_gn.cmake)
set(nuttx_include_dirs)
get_target_property(include_dirs nuttx NUTTX_INCLUDE_DIRECTORIES)
list(APPEND nuttx_include_dirs ${include_dirs})
get_target_property(include_dirs nuttx INCLUDE_DIRECTORIES)
list(APPEND nuttx_include_dirs ${include_dirs})
get_target_property(include_dirs mbedtls INCLUDE_DIRECTORIES)
list(APPEND nuttx_include_dirs ${include_dirs})
get_target_property(include_dirs nuttx NUTTX_CXX_INCLUDE_DIRECTORIES)
if(include_dirs)
list(APPEND nuttx_include_dirs ${include_dirs})
endif()
list(APPEND nuttx_include_dirs ${NUTTX_DIR}/include
${CMAKE_BINARY_DIR}/include ${CMAKE_BINARY_DIR}/include_arch)
list(APPEND nuttx_include_dirs ${NUTTX_APPS_BINDIR}/include/mbedtls)
set(MATTER_INCDIR
${nuttx_include_dirs}