Skip to content

Commit 607a2fe

Browse files
dbortpytorchbot
authored andcommitted
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: #5533 Reviewed By: shoumikhin Differential Revision: D63153558 Pulled By: dbort fbshipit-source-id: b7df7c0b9723c6e60cafea67a39dd326276a6148 (cherry picked from commit 613cfd6)
1 parent dc496bb commit 607a2fe

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/source/apple-runtime.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ Link your binary with the ExecuTorch runtime and any backends or kernels used by
1919

2020
## Integration
2121

22+
### Setup
23+
24+
#### CMake
25+
26+
Building the Xcode project requires CMake. Installing via homebrew does not
27+
typically work; instead, install the packaged application and commandline tools
28+
globally:
29+
30+
1. Download the macOS `.dmg` installer from https://cmake.org/download
31+
2. Open the `.dmg`
32+
3. Drag the CMake app to the `/Applications` folder
33+
4. In a terminal, install the command line tools: `sudo /Applications/CMake.app/Contents/bin/cmake-gui --install`
34+
2235
### Swift Package Manager
2336

2437
The prebuilt ExecuTorch runtime, backend, and kernels are available as a [Swift PM](https://www.swift.org/documentation/package-manager/) package.

0 commit comments

Comments
 (0)