From fa0e24b816bfc7cc0923353500b3a2f324843196 Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Fri, 9 Feb 2024 19:52:14 +1100 Subject: [PATCH] Update ros-noetic-moveit-ros-planning-interface.patch --- patch/ros-noetic-moveit-ros-planning-interface.patch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/patch/ros-noetic-moveit-ros-planning-interface.patch b/patch/ros-noetic-moveit-ros-planning-interface.patch index 6370b1968..39fba713f 100644 --- a/patch/ros-noetic-moveit-ros-planning-interface.patch +++ b/patch/ros-noetic-moveit-ros-planning-interface.patch @@ -75,7 +75,7 @@ diff --git a/py_bindings_tools/CMakeLists.txt b/py_bindings_tools/CMakeLists.txt index 1f82d7e4dc..2f9112fb85 100644 --- a/py_bindings_tools/CMakeLists.txt +++ b/py_bindings_tools/CMakeLists.txt -@@ -1,8 +1,14 @@ +@@ -1,8 +1,16 @@ set(MOVEIT_LIB_NAME moveit_py_bindings_tools) +find_package(PythonInterp REQUIRED) @@ -87,11 +87,13 @@ index 1f82d7e4dc..2f9112fb85 100644 +target_link_libraries(${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES}) +if(NOT APPLE) + target_link_libraries(${MOVEIT_LIB_NAME} ${PYTHON_LIBRARIES}) ++else() ++ set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") +endif(NOT APPLE) install(TARGETS ${MOVEIT_LIB_NAME} ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} -@@ -10,13 +16,19 @@ install(TARGETS ${MOVEIT_LIB_NAME} +@@ -10,13 +16,20 @@ install(TARGETS ${MOVEIT_LIB_NAME} RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}) add_library(${MOVEIT_LIB_NAME}_python src/wrap_python_roscpp_initializer.cpp) @@ -108,6 +110,7 @@ index 1f82d7e4dc..2f9112fb85 100644 endif(WIN32) +if(APPLE) + set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES SUFFIX .so) ++ set_target_properties(${MOVEIT_LIB_NAME}_python PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") +endif(APPLE) install(TARGETS ${MOVEIT_LIB_NAME}_python