From bff5743ace7bf7b7f740625003ef9980d66b7226 Mon Sep 17 00:00:00 2001 From: Dave Bort Date: Fri, 20 Sep 2024 15:57:08 -0700 Subject: [PATCH] Add CMake instructions to apple-runtime.md Took me a bit to figure out how to make cmake work; I had it installed in homebrew but it wasn't working. Add instructions for installing cmake globally in a way that Xcode can find it. --- docs/source/apple-runtime.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/source/apple-runtime.md b/docs/source/apple-runtime.md index 2378ddc2bd2..023903db3b2 100644 --- a/docs/source/apple-runtime.md +++ b/docs/source/apple-runtime.md @@ -19,6 +19,19 @@ Link your binary with the ExecuTorch runtime and any backends or kernels used by ## Integration +### Setup + +#### CMake + +Building the Xcode project requires CMake. Installing via homebrew does not +typically work; instead, install the packaged application and commandline tools +globally: + +1. Download the macOS `.dmg` installer from https://cmake.org/download +2. Open the `.dmg` +3. Drag the CMake app to the `/Applications` folder +4. In a terminal, install the command line tools: `sudo /Applications/CMake.app/Contents/bin/cmake-gui --install` + ### Swift Package Manager The prebuilt ExecuTorch runtime, backend, and kernels are available as a [Swift PM](https://www.swift.org/documentation/package-manager/) package.