Skip to content

🧑‍🌾 Kci__nightly-performance cmake warning related to ament_target_dependencies deprecation #67

@miguelgonrod

Description

@miguelgonrod

Generated by Generative AI

No response

Operating System:

Ubuntu 24.04

ROS version or commit hash:

Kilted

RMW implementation (if applicable):

No response

RMW Configuration (if applicable):

No response

Client library (if applicable):

No response

'ros2 doctor --report' output

No response

Steps to reproduce issue

  1. go to https://build.ros2.org/job/Kci__nightly-performance_ubuntu_noble_amd64
  2. Build a job
  3. See the warning

Expected behavior

To build without warnings

Actual behavior

Building with warnings

Additional information

Reference Build

Log Output

ament_target_dependencies.cmake:87:

17:15:39 CMake Deprecation Warning at /tmp/ws/install_isolated/ament_cmake_target_dependencies/share/ament_cmake_target_dependencies/cmake/ament_target_dependencies.cmake:87 (message):
17:15:39   ament_target_dependencies() is deprecated.  Use target_link_libraries()
17:15:39   with modern CMake targets instead.  Try replacing this call with:
17:15:39 
17:15:39     target_link_libraries(perf_test PUBLIC
17:15:39       osrf_testing_tools_cpp::memory_tools
17:15:39       osrf_testing_tools_cpp::memory_tools_interpose
17:15:39       rclcpp::rclcpp
17:15:39     )
17:15:39 
17:15:39 Call Stack (most recent call first):
17:15:39   CMakeLists.txt:281 (ament_target_dependencies)

This is happening since https://build.ros2.org/job/Kci__nightly-performance_ubuntu_noble_amd64/1

CC: @Crola1702

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions