Skip to content

Commit 07eac29

Browse files
author
Murilo Marinho
committed
[pybind11] Adjusting pybind11 version
1 parent efc1092 commit 07eac29

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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)
66
endif()
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.
1113
FetchContent_Declare(
1214
pybind11
1315
GIT_REPOSITORY https://github.com/pybind/pybind11.git
14-
GIT_TAG v3.0.2
16+
GIT_TAG v3.0
1517
)
1618
FetchContent_MakeAvailable(pybind11)
19+
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^ #
20+
# pybind11 import block [END] #
21+
###############################
1722

1823
find_package(ament_cmake REQUIRED)
1924
find_package(rclcpp REQUIRED)

docker/compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)