Commit 7300001
authored
fix(android): allow overriding CMake version for Windows long-path builds (#265)
Fixes #263
On Windows, the Android build fails when CMake object-file paths exceed
`MAX_PATH` (260 chars). The NDK default CMake (3.22.1) can't handle the
deeply-nested paths from Nitrogen's generated sources.
This is a [known issue across React Native libraries that use
CMake](https://docs.swmansion.com/react-native-reanimated/docs/guides/building-on-windows/).
Adds support for the `CMAKE_VERSION` env var (same as Reanimated) so
users can opt into a newer CMake (e.g. 3.31.6) that handles long paths.1 parent ed3f65c commit 7300001
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | 80 | | |
74 | 81 | | |
| |||
0 commit comments