File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,15 +5,20 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
55 add_compile_options (-Wall -Wextra -Wpedantic )
66endif ()
77
8- #find_package(pybind11 REQUIRED)
9- # Using newer version of pybind11 because of dqrobotics python.
10- include (FetchContent )
8+ #################################
9+ # pybind11 import block [BEGIN] #
10+ # vvvvvvvvvvvvvvvvvvvvvvvvvvvvv #
11+ set (PYBIND11_FINDPYTHON ON ) # Fix CMP0148 Warning. https://github.com/pybind/pybind11/issues/4785
12+ include (FetchContent ) #Use pybind11 v3.0 for compatibility with dqrobotics.
1113FetchContent_Declare (
1214 pybind11
1315 GIT_REPOSITORY https://github.com/pybind/pybind11.git
14- GIT_TAG v3.0.2
16+ GIT_TAG v3.0
1517)
1618FetchContent_MakeAvailable (pybind11)
19+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^ #
20+ # pybind11 import block [END] #
21+ ###############################
1722
1823find_package (ament_cmake REQUIRED )
1924find_package (rclcpp REQUIRED )
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ services:
55 - ../../sas_robot_kinematics:/root/sas_robot_kinematics_devel/src/sas_robot_kinematics
66 command : /bin/bash -c "
77 cd /root/sas_robot_kinematics_devel/src/
8- # && apt-cache policy pybind11-dev
98 && ls .
109 && colcon build
1110 && source install/setup.bash
You can’t perform that action at this time.
0 commit comments