Skip to content

Commit 37786a8

Browse files
author
Murilo Marinho
committed
[pybind11] Making import uniform in sas
1 parent 7b25b78 commit 37786a8

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "pybind11"]
2+
path = pybind11
3+
url = https://github.com/pybind/pybind11.git
4+
branch = v3.0

CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ 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)
8+
#################################
9+
# pybind11 import block [BEGIN] #
10+
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvv #
11+
set(PYBIND11_FINDPYTHON ON) # Fix CMP0148 Warning. https://github.com/pybind/pybind11/issues/4785
12+
add_subdirectory(pybind11)
13+
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^ #
14+
# pybind11 import block [END] #
15+
###############################
16+
917
find_package(ament_cmake REQUIRED)
1018
find_package(rclcpp REQUIRED)
1119
find_package(geometry_msgs REQUIRED)

pybind11

Submodule pybind11 added at 45fab40

0 commit comments

Comments
 (0)