1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index eb701aa..6cb4b02 100644
5 @@ -32,6 +32,11 @@ find_package(Python 3.9
6 REQUIRED COMPONENTS Interpreter Development.Module
7 OPTIONAL_COMPONENTS Development.SABIModule)
10 + COMMAND "${Python_EXECUTABLE}" -m nanobind --cmake_dir
11 + OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE NB_DIR)
12 +list(APPEND CMAKE_PREFIX_PATH "${NB_DIR}")
14 find_package(nanobind CONFIG REQUIRED)
16 if (USE_SYSTEM_LIBSOXR)