Skip to content

Commit

Permalink
ament_target_dependencies is an old and mysterious beast; avoid it
Browse files Browse the repository at this point in the history
  • Loading branch information
EricCousineau-TRI committed Oct 19, 2022
1 parent 8b7793d commit f33d772
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions drake_ros_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ add_library(drake_ros_core
src/subscription.cc
)

ament_target_dependencies(drake_ros_core
Eigen3
drake
geometry_msgs
rclcpp
rosidl_runtime_c
rosidl_typesupport_cpp
target_link_libraries(drake_ros_core PUBLIC
Eigen3::Eigen
drake::drake
${geometry_msgs_TARGETS}
rclcpp::rclcpp
rosidl_runtime_c::rosidl_runtime_c
rosidl_typesupport_cpp::rosidl_typesupport_cpp
)

target_include_directories(drake_ros_core
Expand Down Expand Up @@ -130,8 +130,6 @@ if(BUILD_TESTING)
# We do not expose `rmw_isoliation` via CMake.
_TEST_DISABLE_RMW_ISOLATION
)
# N.B. We cannot use `ament_target_dependencies` because we cannot access this
# package's exported ament target.
target_link_libraries(test_pub_sub
drake::drake
drake_ros_core
Expand Down

0 comments on commit f33d772

Please sign in to comment.