From 16265e94e65422141a127c137a7924a842f4fbf5 Mon Sep 17 00:00:00 2001 From: Nisala Kalupahana Date: Fri, 30 Jul 2021 18:48:35 +0000 Subject: [PATCH] Fix linking issues for ODE on macOS (#549) Co-authored-by: Henning Kayser --- moveit_planners/ompl/ompl_interface/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/moveit_planners/ompl/ompl_interface/CMakeLists.txt b/moveit_planners/ompl/ompl_interface/CMakeLists.txt index 1cc110a84f..ff71c07c00 100644 --- a/moveit_planners/ompl/ompl_interface/CMakeLists.txt +++ b/moveit_planners/ompl/ompl_interface/CMakeLists.txt @@ -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