Skip to content

Commit

Permalink
Update planning/planning_validator/CMakeLists.txt
Browse files Browse the repository at this point in the history
Co-authored-by: Daisuke Nishimatsu <[email protected]>
  • Loading branch information
TakaHoribe and wep21 authored Jan 19, 2023
1 parent 2f74240 commit d65d076
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions planning/planning_validator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,10 @@ rosidl_generate_interfaces(
)

# to use a message defined in the same package
if(${rosidl_cmake_VERSION} VERSION_LESS 2.5.0)
rosidl_target_interfaces(planning_validator_component
${PROJECT_NAME} "rosidl_typesupport_cpp")
else()
rosidl_get_typesupport_target(
cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp")
target_link_libraries(planning_validator_component "${cpp_typesupport_target}")
endif()
rosidl_get_typesupport_target(
cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp"
)
target_link_libraries(planning_validator_component "${cpp_typesupport_target}")

if(BUILD_TESTING)
ament_add_ros_isolated_gtest(test_planning_validator
Expand Down

0 comments on commit d65d076

Please sign in to comment.