find_package() is an abstraction to be used to localize a package. When building this project, the same can be achieved by just including the cmake/nanobind-config.cmake file directly.
Especially the current implementation breaks in cases of using CMake dependency providers, where the dependency provider executes an add_subdirectory call. In this specific case the find_package leads to an infinite recursion of find_package(nanobind) calls.
find_package() is an abstraction to be used to localize a package. When building this project, the same can be achieved by just including the
cmake/nanobind-config.cmake
file directly.Especially the current implementation breaks in cases of using CMake dependency providers, where the dependency provider executes an
add_subdirectory
call. In this specific case the find_package leads to an infinite recursion offind_package(nanobind)
calls.