mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / development / python-modules / soxr / cmake-nanobind.patch
blob2f527e7a1692fdcf59844910e24ed34ababb3fb3
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index eb701aa..6cb4b02 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -32,6 +32,11 @@ find_package(Python 3.9
6 REQUIRED COMPONENTS Interpreter Development.Module
7 OPTIONAL_COMPONENTS Development.SABIModule)
9 +execute_process(
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)