From 40358faea75ad1792ca60a82cba3acffabc08d60 Mon Sep 17 00:00:00 2001 From: pytorchbot Date: Thu, 10 Oct 2024 09:57:27 -0700 Subject: [PATCH] Add CMake instructions to apple-runtime.md (#6099) Add CMake instructions to apple-runtime.md (#5533) Summary: 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. Pull Request resolved: https://github.com/pytorch/executorch/pull/5533 Reviewed By: shoumikhin Differential Revision: D63153558 Pulled By: dbort fbshipit-source-id: b7df7c0b9723c6e60cafea67a39dd326276a6148 (cherry picked from commit 613cfd6c1656bc44dcc1103caacd8d8a7de47233) Co-authored-by: Dave Bort --- 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 7c0a0a6982..e17ee3ea2f 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.