Skip to content

Commit

Permalink
libcxxabi: Soft link the libcxxabi header file to nuttx/include.
Browse files Browse the repository at this point in the history
Signed-off-by: cuiziwei <[email protected]>
  • Loading branch information
cuiziweizw authored and xiaoxiang781216 committed Dec 5, 2024
1 parent 75fc19d commit ae5c7a7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions libs/libxx/libcxxabi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,17 @@ if(CONFIG_LIBCXXABI)
endif()
endif()

nuttx_create_symlink(${CMAKE_CURRENT_LIST_DIR}/libcxxabi/include
${CMAKE_BINARY_DIR}/include/libcxxabi)

set_property(
TARGET nuttx
APPEND
PROPERTY NUTTX_CXX_INCLUDE_DIRECTORIES
${CMAKE_CURRENT_LIST_DIR}/libcxxabi/include)
${CMAKE_BINARY_DIR}/include/libcxxabi)

nuttx_add_system_library(libcxxabi)

set(SRCS)

# C++ABI files
list(
APPEND
Expand Down Expand Up @@ -98,8 +99,6 @@ if(CONFIG_LIBCXXABI)
add_compile_definitions(LIBCXX_BUILDING_LIBCXXABI)
endif()

set(TARGET_SRCS)

foreach(src ${SRCS})
string(PREPEND src libcxxabi/src/)
list(APPEND TARGET_SRCS ${src})
Expand Down

0 comments on commit ae5c7a7

Please sign in to comment.