This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new ae5c7a7fd8 libcxxabi: Soft link the libcxxabi header file to 
nuttx/include.
ae5c7a7fd8 is described below

commit ae5c7a7fd8b573d70742b14aeac855a86e5797e5
Author: cuiziwei <[email protected]>
AuthorDate: Thu Dec 5 16:12:29 2024 +0800

    libcxxabi: Soft link the libcxxabi header file to nuttx/include.
    
    Signed-off-by: cuiziwei <[email protected]>
---
 libs/libxx/libcxxabi/CMakeLists.txt | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/libs/libxx/libcxxabi/CMakeLists.txt 
b/libs/libxx/libcxxabi/CMakeLists.txt
index 9b965c0ced..ab747e6ee3 100644
--- a/libs/libxx/libcxxabi/CMakeLists.txt
+++ b/libs/libxx/libcxxabi/CMakeLists.txt
@@ -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
@@ -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})

Reply via email to