| 1 | Use the system-wide installed nanobind instead of vendoring it via Git submodules.
|
| 2 |
|
| 3 | diff --git a/CMakeLists.txt b/CMakeLists.txt
|
| 4 | index 92eab9d..3bc8b0d 100644
|
| 5 | |
| 6 | |
| 7 | @@ -44,8 +44,11 @@ add_definitions(
|
| 8 | -DSWIFT_STDLIB_HAS_TYPE_PRINTING=1
|
| 9 | )
|
| 10 |
|
| 11 | -# finding nanobind
|
| 12 | -add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src/nanobind)
|
| 13 | +# See https://nanobind.readthedocs.io/en/latest/building.html#finding-nanobind
|
| 14 | +execute_process(
|
| 15 | + COMMAND "${Python_EXECUTABLE}" -m nanobind --cmake_dir
|
| 16 | + OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE nanobind_ROOT)
|
| 17 | +find_package(nanobind CONFIG REQUIRED)
|
| 18 |
|
| 19 | nanobind_add_module(
|
| 20 | pydemumble
|