File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,15 @@ endforeach
160160
161161subdir (' window' )
162162
163- nanobind_dep = dependency (' nanobind' )
163+ cmake = import (' cmake' )
164+ opt_var = cmake.subproject_options()
165+ # the inclusion of the test directory from the top level
166+ # CMake defines NB_ABORT_ON_LEAK. We apparently have some leaks
167+ # detected on ubuntu, but don't want that to crash CI for now
168+ opt_var.append_compile_args(' cpp' , ' -UNB_ABORT_ON_LEAK' )
169+ nanobind_proj = cmake.subproject (' nanobind' , options : opt_var)
170+ nanobind_dep = nanobind_proj.dependency (' nanobind-static' )
171+
164172py.extension_module(
165173 ' new_vector' ,
166174 [' new_vector.cpp' ],
Original file line number Diff line number Diff line change @@ -4,6 +4,3 @@ url = https://github.com/wjakob/nanobind/
44revision = v1.9.2
55depth = 1
66clone-recursive = true
7-
8- [provide]
9- nanobind = nanobind_static_dep
You can’t perform that action at this time.
0 commit comments