File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,27 @@ jrl_find_package(Eigen3 CONFIG REQUIRED)
3030jrl_find_python(3.8 REQUIRED COMPONENTS Interpreter Development.Module)
3131jrl_find_nanobind(2.5.0 CONFIG QUIET )
3232
33+ if (nanobind_ROOT AND NOT nanobind_FOUND)
34+ message (WARNING "nanobind found at ${nanobind_ROOT} but too old" )
35+ endif ()
36+
3337# On Ubuntu 24.04, the nanobind-dev package ships nanobind 1.9.2.
3438# We require >=2.5.0 for nanobind_add_stub,
3539# NB_SUPPRESS_WARNINGS, and visitor pattern (c++)
3640if (NOT nanobind_FOUND)
41+ set (nanobind_GIT_REPOSITORY "https://github.com/wjakob/nanobind.git" )
42+ set (nanobind_GIT_TAG "v2.10.1" )
43+
44+ message (
45+ STATUS
46+ "nanobind: fallback to FetchContent from ${nanobind_GIT_REPOSITORY} (tag: ${nanobind_GIT_TAG} )"
47+ )
48+
3749 include (FetchContent)
3850 FetchContent_Declare(
3951 nanobind
40- GIT_REPOSITORY https://github.com/wjakob/nanobind.git
41- GIT_TAG v2.10.1
52+ GIT_REPOSITORY ${nanobind_GIT_REPOSITORY}
53+ GIT_TAG ${nanobind_GIT_TAG}
4254 GIT_SHALLOW True
4355 )
4456 FetchContent_MakeAvailable(nanobind)
You can’t perform that action at this time.
0 commit comments