Skip to content

Commit 434314e

Browse files
nkalupahanahenningkayser
authored andcommitted
Fix linking issues for ODE on macOS (moveit#549)
Co-authored-by: Henning Kayser <[email protected]>
1 parent 031f7f0 commit 434314e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

moveit_planners/ompl/ompl_interface/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_V
2626

2727
find_package(OpenMP REQUIRED)
2828

29+
# Used to link in ODE, an OMPL dependency, on macOS
30+
if(APPLE)
31+
target_link_directories(${MOVEIT_LIB_NAME} PUBLIC ${OMPL_LIBRARY_DIRS})
32+
endif()
33+
2934
ament_target_dependencies(${MOVEIT_LIB_NAME}
3035
moveit_core
3136
moveit_msgs

0 commit comments

Comments
 (0)