Skip to content

Commit 81a1558

Browse files
committed
CMake: nanobind 2.5.0 is required
and ROS nanobind-dev is 1.9.2 for now, so fallback to submodule
1 parent 730bd10 commit 81a1558

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "cmake"]
22
path = cmake
33
url = https://github.com/jrl-umi3218/jrl-cmakemodules.git
4+
[submodule "ext/nanobind"]
5+
path = ext/nanobind
6+
url = https://github.com/wjakob/nanobind

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ execute_process(
112112
OUTPUT_STRIP_TRAILING_WHITESPACE
113113
OUTPUT_VARIABLE nanobind_ROOT
114114
)
115-
find_package(nanobind CONFIG REQUIRED)
115+
find_package(nanobind 2.5.0 CONFIG)
116+
if(NOT nanobind_FOUND)
117+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ext/nanobind)
118+
endif()
116119

117120
# Setup main targets
118121
file(

ext/nanobind

Submodule nanobind added at 879bca4

0 commit comments

Comments
 (0)