Skip to content

Commit f474915

Browse files
authored
Fix rolling build (#173)
Signed-off-by: Antón Casas <antoncasas@eprosima.com>
1 parent 6b15ab7 commit f474915

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

microros_utils/library_builder.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,13 @@ def download_dev_environment(self):
9696

9797
def build_dev_environment(self):
9898
print("Building micro-ROS dev dependencies")
99-
command = "cd {} && . {} && colcon build --cmake-args -DBUILD_TESTING=OFF -DPython3_EXECUTABLE=`which python`".format(self.dev_folder, self.python_env)
99+
100+
# Fix build: Ignore rmw_test_fixture_implementation in rolling
101+
touch_command = ''
102+
if self.distro == 'rolling':
103+
touch_command = 'touch src/ament_cmake_ros/rmw_test_fixture_implementation/COLCON_IGNORE && '
104+
105+
command = "cd {} && {} . {} && colcon build --cmake-args -DBUILD_TESTING=OFF -DPython3_EXECUTABLE=`which python`".format(self.dev_folder, touch_command, self.python_env)
100106
result = run_cmd(command, env=self.env)
101107

102108
if 0 != result.returncode:

0 commit comments

Comments
 (0)