Skip to content

Commit

Permalink
fix(control_performance_analysis): modify build error in rolling (tie…
Browse files Browse the repository at this point in the history
…r4#757)

Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
  • Loading branch information
wep21 authored and boyali committed Sep 28, 2022
1 parent a409716 commit e3b1b90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions control/control_performance_analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ ament_auto_add_library(control_performance_analysis_node SHARED
src/control_performance_analysis_node.cpp
)

rosidl_target_interfaces(control_performance_analysis_node
control_performance_analysis_msgs "rosidl_typesupport_cpp")
if(${rosidl_cmake_VERSION} VERSION_LESS 2.5.0)
rosidl_target_interfaces(control_performance_analysis_node
control_performance_analysis_msgs "rosidl_typesupport_cpp")
else()
rosidl_get_typesupport_target(
cpp_typesupport_target control_performance_analysis_msgs "rosidl_typesupport_cpp")
target_link_libraries(control_performance_analysis_node "${cpp_typesupport_target}")
endif()

target_link_libraries(control_performance_analysis_node
control_performance_analysis_core
Expand Down
1 change: 1 addition & 0 deletions control/control_performance_analysis/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<depend>libboost-dev</depend>
<depend>nav_msgs</depend>
<depend>rclcpp</depend>
<depend>rclcpp_components</depend>
<depend>sensor_msgs</depend>
<depend>std_msgs</depend>
<depend>tf2</depend>
Expand Down

0 comments on commit e3b1b90

Please sign in to comment.