Skip to content

Commit

Permalink
Fix linking issues for ODE on macOS (moveit#549)
Browse files Browse the repository at this point in the history
Co-authored-by: Henning Kayser <[email protected]>
  • Loading branch information
2 people authored and christianlandgraf committed Aug 12, 2021
1 parent d1bc6c1 commit 16265e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions moveit_planners/ompl/ompl_interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_V

find_package(OpenMP REQUIRED)

# Used to link in ODE, an OMPL dependency, on macOS
if(APPLE)
target_link_directories(${MOVEIT_LIB_NAME} PUBLIC ${OMPL_LIBRARY_DIRS})
endif()

ament_target_dependencies(${MOVEIT_LIB_NAME}
moveit_core
moveit_msgs
Expand Down

0 comments on commit 16265e9

Please sign in to comment.