Skip to content

Commit d2f62b1

Browse files
committed
rely on post-noetic pybind11_catkin
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 d2f62b1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

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: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# pybind11 must use the ROS python version
2-
set(PYBIND11_PYTHON_VERSION ${PYTHON_VERSION})
3-
find_package(pybind11 3.0 REQUIRED)
1+
find_package(pybind11_catkin REQUIRED)
42

53
# C++ wrapper code
64
add_subdirectory(bindings)

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)