Skip to content

Commit

Permalink
Update ros-noetic-moveit-ros-planning-interface.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer authored Feb 9, 2024
1 parent dd1b792 commit fa0e24b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions patch/ros-noetic-moveit-ros-planning-interface.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit fa0e24b

Please sign in to comment.