Skip to content

Commit

Permalink
[readme] Add note about building with Ninja in README-CMAKE (#6960)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty authored Aug 14, 2024
1 parent a2060fe commit dece239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README-CMAKE.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ The following build options are available:

## Build Setup

The WPILib CMake build does not allow in source builds. Because the `build` directory is used by Gradle, we recommend a `build-cmake` directory in the root. This folder is included in the gitignore.
The WPILib CMake build does not allow in source builds. Because the `build` directory is used by Gradle, we recommend a `build-cmake` directory in the root. This folder is included in the gitignore. We support building with Ninja; other options like Makefiles may be broken.

Once you have a build folder, run CMake configuration in that build directory with the following command.

```
cmake path/to/allwpilib/root
cmake path/to/allwpilib/root -G Ninja
```

If you want to change any of the options, add `-DOPTIONHERE=VALUE` to the `cmake` command. This will check for any dependencies. If everything works properly this will succeed. If not, please check out the troubleshooting section for help.
Expand Down

0 comments on commit dece239

Please sign in to comment.