From 7a884828392ed7441a4a2bcde5f13210e5a495b2 Mon Sep 17 00:00:00 2001 From: Davide Faconti Date: Thu, 23 Oct 2025 10:55:22 +0200 Subject: [PATCH 1/3] fix warning --- src/xml_parsing.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/xml_parsing.cpp b/src/xml_parsing.cpp index da68be99a..5426cc2e4 100644 --- a/src/xml_parsing.cpp +++ b/src/xml_parsing.cpp @@ -29,11 +29,17 @@ #if defined(__linux) || defined(__linux__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wattributes" +#pragma GCC diagnostic ignored "-Wtype-limits" +#endif + +#include "tinyxml2.h" + +#if defined(__linux) || defined(__linux__) +#pragma GCC diagnostic pop #endif #include #include "behaviortree_cpp/xml_parsing.h" -#include "tinyxml2.h" #include #ifdef USING_ROS2 From 35802105fe4a8bfec05de7dd5fe36f606e7ef400 Mon Sep 17 00:00:00 2001 From: Davide Faconti Date: Thu, 23 Oct 2025 10:55:45 +0200 Subject: [PATCH 2/3] fix private pedendencies --- CMakeLists.txt | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7cdeea380..117ff7daa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,17 +226,29 @@ target_link_libraries(${BTCPP_LIBRARY} PRIVATE Threads::Threads ${CMAKE_DL_LIBS} - foonathan::lexy - minitrace::minitrace - tinyxml2::tinyxml2 - minicoro::minicoro - flatbuffers::flatbuffers - $<$:cppzmq> - $<$:SQLite::SQLite3> + $ + $ + $ + $ + $ PUBLIC ${BTCPP_EXTRA_LIBRARIES} ) +if(BTCPP_GROOT_INTERFACE) + target_link_libraries(${BTCPP_LIBRARY} + PRIVATE + $ + ) +endif() + +if(BTCPP_SQLITE_LOGGING) + target_link_libraries(${BTCPP_LIBRARY} + PRIVATE + $ + ) +endif() + target_include_directories(${BTCPP_LIBRARY} PUBLIC $ From 042875f9cf14a67f8f914cf9bcda2a2c179a6a2c Mon Sep 17 00:00:00 2001 From: Davide Faconti Date: Thu, 23 Oct 2025 12:29:15 +0200 Subject: [PATCH 3/3] stop installing lexy --- 3rdparty/lexy/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/lexy/CMakeLists.txt b/3rdparty/lexy/CMakeLists.txt index a76693a9e..3a63b7798 100644 --- a/3rdparty/lexy/CMakeLists.txt +++ b/3rdparty/lexy/CMakeLists.txt @@ -9,7 +9,7 @@ option(LEXY_FORCE_CPP17 "Whether or not lexy should use C++17 even if compil add_subdirectory(src) -option(LEXY_ENABLE_INSTALL "whether or not to enable the install rule" ON) +option(LEXY_ENABLE_INSTALL "whether or not to enable the install rule" OFF) if(LEXY_ENABLE_INSTALL) include(CMakePackageConfigHelpers) include(GNUInstallDirs)