Skip to content

Commit 0e72e54

Browse files
author
Murilo Marinho
committed
[pybind11] As submodule
1 parent c8aab12 commit 0e72e54

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v6
11+
with:
12+
submodules: true
1113

1214
- name: apt update
1315
run: sudo apt-get update && sudo apt-get upgrade -y

.gitmodules

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

CMakeLists.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
cmake_minimum_required(VERSION 3.14)
2-
# FetchContent_MakeAvailable since version 3.14
1+
cmake_minimum_required(VERSION 3.8)
32

43
project(sas_common)
54

@@ -11,13 +10,7 @@ endif()
1110
# pybind11 import block [BEGIN] #
1211
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvv #
1312
set(PYBIND11_FINDPYTHON ON) # Fix CMP0148 Warning. https://github.com/pybind/pybind11/issues/4785
14-
include(FetchContent) #Use pybind11 v3.0 for compatibility with dqrobotics.
15-
FetchContent_Declare(
16-
pybind11
17-
GIT_REPOSITORY https://github.com/pybind/pybind11.git
18-
GIT_TAG v3.0
19-
)
20-
FetchContent_MakeAvailable(pybind11)
13+
add_subdirectory(pybind11)
2114
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^ #
2215
# pybind11 import block [END] #
2316
###############################

docker/pybind11

Submodule pybind11 added at 45fab40

0 commit comments

Comments
 (0)