Commit c12ecbe
authored
Configure conflicting ARM baremetal cmake flags (#11493)
### Summary
Similar to #11457, but now we
also want to warn against unsupported/conflicting flags. For example,
when using `EXECUTORCH_BUILD_ARM_BAREMETAL`, we cannot enable certain
flags.
### Test plan
CI
```
$ cmake -DEXECUTORCH_BUILD_ARM_BAREMETAL=ON --preset macos
CMake Error at tools/cmake/common/preset.cmake:142 (message):
Both 'EXECUTORCH_BUILD_ARM_BAREMETAL' and
'EXECUTORCH_BUILD_EXTENSION_DATA_LOADER' can't be ON
Call Stack (most recent call first):
tools/cmake/preset/default.cmake:352 (check_conflicting_options_on)
CMakeLists.txt:87 (include)
```
cc @larryliu0820 @digantdesai @freddan80 @per @zingo @oscarandersson82181 parent 2dc822e commit c12ecbe
2 files changed
+9
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | 517 | | |
529 | 518 | | |
530 | 519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
340 | 349 | | |
341 | 350 | | |
342 | 351 | | |
| |||
355 | 364 | | |
356 | 365 | | |
357 | 366 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
0 commit comments