Skip to content

Commit 4b9c872

Browse files
authored
rely on post-noetic pybind11_catkin (#733)
ros-o's pybind11_catkin bundles a sufficient pybind11 and ensures python_add_library is available also with ros-o catkin, where the implicit `find_package(Python COMPONENTS Interpreter)` does not provide it by default anymore.
1 parent edcb472 commit 4b9c872

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ find_package(catkin REQUIRED COMPONENTS
1414
roscpp
1515
visualization_msgs
1616
rviz_marker_tools
17+
pybind11_catkin
1718
py_binding_tools
1819
)
1920

core/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
<build_depend>roscpp</build_depend>
1919
<build_depend>roslint</build_depend>
20+
<build_depend>pybind11_catkin</build_depend>
2021
<exec_depend>roscpp</exec_depend>
2122

2223
<depend>fmt</depend>

core/python/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# pybind11 must use the ROS python version
2-
set(PYBIND11_PYTHON_VERSION ${PYTHON_VERSION})
3-
find_package(pybind11 3.0 REQUIRED)
4-
51
# C++ wrapper code
62
add_subdirectory(bindings)
73

core/python/bindings/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ target_link_libraries(${PROJECT_NAME}_python_tools PUBLIC pybind11::opt_size)
1111
#catkin_lint: ignore undefined_target
1212

1313
# moveit.task_constructor
14-
pybind11_add_module(pymoveit_mtc
14+
pybind_add_module(pymoveit_mtc
1515
src/solvers.cpp
1616
src/core.cpp
1717
src/stages.cpp

0 commit comments

Comments
 (0)