nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 19 lines 564 B view raw
1diff --git a/CMakeLists.txt b/CMakeLists.txt 2index 0ed30932..e5842707 100644 3--- a/CMakeLists.txt 4+++ b/CMakeLists.txt 5@@ -339,13 +339,7 @@ if(MLX_BUILD_PYTHON_BINDINGS) 6 Python 3.10 7 COMPONENTS Interpreter Development.Module 8 REQUIRED) 9- FetchContent_Declare( 10- nanobind 11- GIT_REPOSITORY https://github.com/wjakob/nanobind.git 12- GIT_TAG v2.10.2 13- GIT_SHALLOW TRUE 14- EXCLUDE_FROM_ALL) 15- FetchContent_MakeAvailable(nanobind) 16+ find_package(nanobind CONFIG REQUIRED) 17 add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/python/src) 18 endif() 19