Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
cmake: use CMAKE_SYSTEM_PROCESSOR instead of CMAKE_OSX_ARCHITECTURES for mlx.metallib install (#13696)
Jeffrey Morgandbf47ee55a34
diff --git a/CMakeLists.txt b/CMakeLists.txtindex 7724faa03..b17630918 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -199,7 +199,7 @@ if(MLX_ENGINE)# Install the Metal library for macOS arm64 (must be colocated with the binary)# Metal backend is only built for arm64, not x86_64- if(APPLE AND CMAKE_OSX_ARCHITECTURES MATCHES "arm64")+ if(APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")install(FILES ${CMAKE_BINARY_DIR}/_deps/mlx-build/mlx/backend/metal/kernels/mlx.metallibDESTINATION ${OLLAMA_INSTALL_DIR}COMPONENT MLX)