@@ -28,7 +28,7 @@ option(USE_VENDORED_FLATBUFFERS "Use the bundled version of flatbuffers" ON)
2828option (USE_VENDORED_LEXY "Use the bundled version of lexy" ON )
2929option (USE_VENDORED_MINICORO "Use the bundled version of minicoro" ON )
3030option (USE_VENDORED_MINITRACE "Use the bundled version of minitrace" ON )
31- option (USE_VENDORED_TINYXML2 "Use the bundled version of tinyxml2" ON )
31+ # Usage of TINYXML2 sits with the ROS2 lookup
3232
3333set (BTCPP_LIB_DESTINATION lib)
3434set (BTCPP_INCLUDE_DESTINATION include )
@@ -84,6 +84,7 @@ if(POLICY CMP0057)
8484 cmake_policy (SET CMP0057 NEW)
8585endif ()
8686
87+ set (_default_use_vendored_tiny_xml ON )
8788find_package (ament_cmake QUIET )
8889
8990if ( ament_cmake_FOUND )
@@ -93,12 +94,14 @@ if ( ament_cmake_FOUND )
9394 message (STATUS "BehaviorTree is being built using AMENT." )
9495 message (STATUS "------------------------------------------" )
9596 include (cmake/ament_build.cmake)
97+ set (_default_use_vendored_tiny_xml OFF )
9698else ()
9799 message (STATUS "------------------------------------------" )
98100 message (STATUS "BehaviorTree is being built without AMENT." )
99101 message (STATUS "------------------------------------------" )
100102 include (cmake/conan_build.cmake)
101103endif ()
104+ option (USE_VENDORED_TINYXML2 "Use the bundled version of tinyxml2" ${_default_use_vendored_tiny_xml} )
102105
103106#############################################################
104107# Handle dependencies
0 commit comments