Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Dec 11, 2025

It doesn't make sense to export an executable; this is causing issues when you add the packages as a dependency and use ament_auto

--- stderr: robot_control
CMake Error at /opt/ros/humble/share/ament_cmake_gmock/cmake/ament_add_gmock.cmake:69 (add_executable):
  Target "test_transmission_manager" links to target
  "force_torque_sensor_broadcaster::wrench_transformer_node" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  /opt/ros/humble/share/ament_cmake_gmock/cmake/ament_add_gmock.cmake:52 (_ament_add_gmock)
  /opt/ros/humble/share/ament_cmake_auto/cmake/ament_auto_add_gmock.cmake:45 (ament_add_gmock)
  CMakeLists.txt:21 (ament_auto_add_gmock)
CMake Error at /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
  Target "test_load_robot_control" links to target
  "force_torque_sensor_broadcaster::wrench_transformer_node" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  /opt/ros/humble/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
  /opt/ros/humble/share/ament_cmake_auto/cmake/ament_auto_add_gtest.cmake:71 (ament_add_gtest_executable)
  CMakeLists.txt:26 (ament_auto_add_gtest)
CMake Error at /opt/ros/humble/share/ament_cmake_gmock/cmake/ament_add_gmock.cmake:69 (add_executable):
  Target "test_robot_control" links to target
  "force_torque_sensor_broadcaster::wrench_transformer_node" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  /opt/ros/humble/share/ament_cmake_gmock/cmake/ament_add_gmock.cmake:52 (_ament_add_gmock)
  /opt/ros/humble/share/ament_cmake_auto/cmake/ament_auto_add_gmock.cmake:45 (ament_add_gmock)
  CMakeLists.txt:72 (ament_auto_add_gmock)

For example: https://github.com/ros2/geometry2/blob/9462cec08e5d01fcb54cfdf5abbcde0c31029ae8/tf2_ros/CMakeLists.txt#L115-L123


This is an automatic backport of pull request #2069 done by Mergify.

@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.81%. Comparing base (cd897d2) to head (215a1db).
⚠️ Report is 1 commits behind head on jazzy.

Additional details and impacted files
@@           Coverage Diff           @@
##            jazzy    #2071   +/-   ##
=======================================
  Coverage   84.81%   84.81%           
=======================================
  Files         143      143           
  Lines       14035    14035           
  Branches     1230     1230           
=======================================
  Hits        11904    11904           
  Misses       1697     1697           
  Partials      434      434           
Flag Coverage Δ
unittests 84.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@saikishor saikishor merged commit 728a19d into jazzy Dec 11, 2025
11 of 14 checks passed
@saikishor saikishor deleted the mergify/bp/jazzy/pr-2069 branch December 11, 2025 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants