You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "xuxin930 (via GitHub)" <gi...@apache.org> on 2025/07/20 06:15:13 UTC

[PR] cmake(bugfix):add default c++ search path [nuttx]

xuxin930 opened a new pull request, #16751:
URL: https://github.com/apache/nuttx/pull/16751

   
   
   *Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   when libcxx or uClib++ is not selected, we use the default NUTTX cxx
   
   this should fix issue https://github.com/apache/nuttx/issues/16221
   
   ## Impact
   
   bugfix for  https://github.com/apache/nuttx/issues/16221
   
   ## Testing
   
   CI test
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] cmake(bugfix):add default c++ search path [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #16751:
URL: https://github.com/apache/nuttx/pull/16751


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] cmake(bugfix):add default c++ search path [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #16751:
URL: https://github.com/apache/nuttx/pull/16751#discussion_r2217680902


##########
libs/libxx/CMakeLists.txt:
##########
@@ -30,3 +30,19 @@
 # GIT repository for more information
 
 nuttx_add_subdirectory()
+
+if(TARGET nuttx
+   AND NOT CONFIG_LIBCXX
+   AND NOT CONFIG_UCLIBCXX)
+  set_property(
+    TARGET nuttx
+    APPEND
+    PROPERTY NUTTX_CXX_INCLUDE_DIRECTORIES ${NUTTX_DIR}/include/cxx)
+
+  if(CONFIG_ETL)

Review Comment:
   why couple CONFIG_ETL with cxxmini



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] cmake(bugfix):add default c++ search path [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on code in PR #16751:
URL: https://github.com/apache/nuttx/pull/16751#discussion_r2217680683


##########
libs/libxx/CMakeLists.txt:
##########
@@ -30,3 +30,19 @@
 # GIT repository for more information
 
 nuttx_add_subdirectory()
+
+if(TARGET nuttx

Review Comment:
   why not check CONFIG_LIBCXXMINI directly



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] cmake(bugfix):add default c++ search path [nuttx]

Posted by "xuxin930 (via GitHub)" <gi...@apache.org>.
xuxin930 commented on code in PR #16751:
URL: https://github.com/apache/nuttx/pull/16751#discussion_r2217704956


##########
libs/libxx/CMakeLists.txt:
##########
@@ -30,3 +30,19 @@
 # GIT repository for more information
 
 nuttx_add_subdirectory()
+
+if(TARGET nuttx

Review Comment:
   This is a wrong modification.
   The root cause is that the toolchaincxx library does not reference the header file



##########
libs/libxx/CMakeLists.txt:
##########
@@ -30,3 +30,19 @@
 # GIT repository for more information
 
 nuttx_add_subdirectory()
+
+if(TARGET nuttx
+   AND NOT CONFIG_LIBCXX
+   AND NOT CONFIG_UCLIBCXX)
+  set_property(
+    TARGET nuttx
+    APPEND
+    PROPERTY NUTTX_CXX_INCLUDE_DIRECTORIES ${NUTTX_DIR}/include/cxx)
+
+  if(CONFIG_ETL)

Review Comment:
   This is a wrong modification.
   The root cause is that the toolchaincxx library does not reference the header file



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org