From d0ca841f41c580a5084375e8b62f1dcc77d0d3f2 Mon Sep 17 00:00:00 2001 From: scivision Date: Sun, 14 Dec 2025 11:11:33 -0600 Subject: [PATCH] doc: use modern CMake invocation --- README.md | 7 +++---- docs/src/install.rst | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4c42e9c4..a90b7ff0 100644 --- a/README.md +++ b/README.md @@ -23,15 +23,14 @@ brew install cmake To build, run the following commands: ```shell -mkdir build && cd build -cmake .. -DCMAKE_BUILD_TYPE=Release -make -j +cmake -B build -DCMAKE_BUILD_TYPE=Release +cmake --build build ``` From the `build/` directory, you can run an [example](examples/example.c) that uses MLX C with `./example`. -## Contributing +## Contributing Check out the [contribution guidelines](CONTRIBUTING.md) for more information on contributing to MLX C. See the diff --git a/docs/src/install.rst b/docs/src/install.rst index 79949658..718972a3 100644 --- a/docs/src/install.rst +++ b/docs/src/install.rst @@ -11,9 +11,8 @@ To build MLX C, run the following commands: .. code-block:: shell - mkdir build && cd build/ - cmake .. -DCMAKE_BUILD_TYPE=Release - make -j + cmake -B build -DCMAKE_BUILD_TYPE=Release + cmake --build build MLX C will fetch `MLX `_ under the hood, compile it, and then compile the C API.