Skip to content

Commit

Permalink
Fix linking issues for ODE on macOS (#549)
Browse files Browse the repository at this point in the history
Co-authored-by: Henning Kayser <[email protected]>
  • Loading branch information
nkalupahana and henningkayser authored Jul 30, 2021
1 parent d903614 commit 8463854
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 8463854

Please sign in to comment.