build: find mimick_vendor for test targets (fixes #2306) #3413
ABI Compliance Check
✅ Verdict: compatible
| Library | Verdict | Summary |
|---|---|---|
| libcomponent_manager.so | ✅ compatible | No ABI changes detected. |
| librclcpp.so | ✅ compatible | No ABI changes detected. |
| librclcpp_action.so | ✅ compatible | No ABI changes detected. |
| librclcpp_lifecycle.so | ✅ compatible | No ABI changes detected. |
<details><summary>✅ <code>libcomponent_manager.so</code> — full abidiff report</summary>
Compared:
lib-base/libcomponent_manager.solib-pr/libcomponent_manager.so @ b15fde2(empty report — no differences printed by abidiff)
</details>
<details><summary>✅ <code>librclcpp.so</code> — full abidiff report</summary>
Compared:
lib-base/librclcpp.solib-pr/librclcpp.so @ b15fde2(empty report — no differences printed by abidiff)
</details>
<details><summary>✅ <code>librclcpp_action.so</code> — full abidiff report</summary>
Compared:
lib-base/librclcpp_action.solib-pr/librclcpp_action.so @ b15fde2(empty report — no differences printed by abidiff)
</details>
<details><summary>✅ <code>librclcpp_lifecycle.so</code> — full abidiff report</summary>
Compared:
lib-base/librclcpp_lifecycle.solib-pr/librclcpp_lifecycle.so @ b15fde2(empty report — no differences printed by abidiff)
</details>
<sub>Updated for commit b15fde2 · check run · suppressions: /home/runner/work/_temp/ros2-abi-suppressions.txt</sub>
<!-- libabigail-action-marker:ros2-abi -->
@clalancette @fujitatomoya ptal is this looks good???
Pulls: ros2/rclcpp#3413
Gist: https://gist.githubusercontent.com/mjcarroll/433cb4c696956225ea1a57a51eb665f1/raw/6a3af7ab6c1a6718ee0fc727a62f35329595388f/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp rclcpp_action rclcpp_lifecycle
TEST args: --packages-above rclcpp rclcpp_action rclcpp_lifecycle
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/21126
Linux 
Linux-aarch64 
Linux-rhel 
Windows 
Approved these changes.
Approved these changes.
mjcarroll
Aaravanand00
Description
Fixes #2306
rclcpp,rclcpp_action, andrclcpp_lifecyclelink several test targets against themimicklibrary and declaremimick_vendoras a<test_depend>in theirpackage.xmlfiles.However, none of their
CMakeLists.txtfiles actually invokedfind_package(mimick_vendor REQUIRED). Without this call, CMake does not import themimicktarget with its exported vendor installation paths, and instead falls back to passing plain-lmimickto the linker.When overlaying
rclcppon top of binary installations (e.g.colcon build --allow-overriding rclcpp ...),/usr/bin/ldfails to locatelibmimick.ain the isolated vendor prefix unless the environment was re-sourced after installingros-<distro>-mimick-vendor.This PR adds
find_package(mimick_vendor REQUIRED)underBUILD_TESTINGin:rclcpp/test/CMakeLists.txtrclcpp_action/CMakeLists.txtrclcpp_lifecycle/CMakeLists.txtMatching the pattern already used in
rcl/test/CMakeLists.txt.Is this user-facing behavior change?
No API changes. Fixes linker failure (
/usr/bin/ld: cannot find -lmimick) when compiling tests on overlay workspaces.Did you use Generative AI?
Yes AI was used to assist with root cause analysis and verifying CMake dependency chains.
Additional Information
ament_lint_cmake(0 problems found).