Skip to content

Commit

Permalink
Add CMake instructions to apple-runtime.md (pytorch#6099)
Browse files Browse the repository at this point in the history
Add CMake instructions to apple-runtime.md (pytorch#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: pytorch#5533

Reviewed By: shoumikhin

Differential Revision: D63153558

Pulled By: dbort

fbshipit-source-id: b7df7c0b9723c6e60cafea67a39dd326276a6148
(cherry picked from commit 613cfd6)

Co-authored-by: Dave Bort <[email protected]>
  • Loading branch information
pytorchbot and dbort authored Oct 10, 2024
1 parent 644045a commit 40358fa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/source/apple-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 40358fa

Please sign in to comment.