Skip to content

Commit

Permalink
fix(dummy_perception_publisher): modify build error in rolling (tier4…
Browse files Browse the repository at this point in the history
…#761)

Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
  • Loading branch information
wep21 authored and boyali committed Oct 3, 2022
1 parent e0e27cc commit 1d80911
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions simulator/dummy_perception_publisher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,14 @@ target_include_directories(dummy_perception_publisher_node
$<INSTALL_INTERFACE:include>)

# For using message definitions from the same package
rosidl_target_interfaces(dummy_perception_publisher_node
${PROJECT_NAME} "rosidl_typesupport_cpp")
if(${rosidl_cmake_VERSION} VERSION_LESS 2.5.0)
rosidl_target_interfaces(dummy_perception_publisher_node
${PROJECT_NAME} "rosidl_typesupport_cpp")
else()
rosidl_get_typesupport_target(
cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp")
target_link_libraries(dummy_perception_publisher_node "${cpp_typesupport_target}")
endif()

# PCL dependencies – `ament_target_dependencies` doesn't respect the
# components/modules selected above and only links in `common` ,so we need
Expand Down

0 comments on commit 1d80911

Please sign in to comment.