From 66fbf03e4453b82f2db9e8cf76308308717f07a1 Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Thu, 16 Nov 2023 16:47:35 -0700 Subject: [PATCH] Tools: ros2: Enable networking when building with colcon * This skips sim_vehicle Signed-off-by: Ryan Friedman --- Tools/ros2/ardupilot_sitl/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/ros2/ardupilot_sitl/CMakeLists.txt b/Tools/ros2/ardupilot_sitl/CMakeLists.txt index 9d40ea746d43b6..51c34576d2a16a 100644 --- a/Tools/ros2/ardupilot_sitl/CMakeLists.txt +++ b/Tools/ros2/ardupilot_sitl/CMakeLists.txt @@ -24,12 +24,12 @@ message(STATUS "WAF_COMMAND: ${WAF_COMMAND}") set(WAF_CONFIG $<$,$>:"--debug">) add_custom_target(ardupilot_configure ALL - ${WAF_COMMAND} configure --board sitl --enable-dds ${WAF_CONFIG} + ${WAF_COMMAND} configure --board sitl --enable-dds --enable-networking ${WAF_CONFIG} WORKING_DIRECTORY ${ARDUPILOT_ROOT} ) add_custom_target(ardupilot_build ALL - ${WAF_COMMAND} build --enable-dds ${WAF_CONFIG} + ${WAF_COMMAND} build --enable-dds --enable-networking ${WAF_CONFIG} WORKING_DIRECTORY ${ARDUPILOT_ROOT} ) add_dependencies(ardupilot_build ardupilot_configure)