[HELP] Usage of CMAKE_SYSTEM_PROCESSOR
- Dominant language
- C
- Stars
- 4k
- Forks
- 1.7k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 237
Description
### Description
I have a question. It seems that many other projects use the architecture name as the value for CMAKE_SYSTEM_PROCESSOR. For example, for Cortex-M0, it should be set to armv6m. However, if we directly set it to the CPU type now, we may encounter compatibility issues with some libraries:
https://github.com/apache/nuttx/blob/b37a5277ac2a82a4089b54a265b6a70c7034d2ba/arch/arm/src/cmake/platform.cmake#L25-L31
For the 3rd party lib, such as iree and openamp
https://github.com/iree-org/iree/blob/6cdb40cf6ebe1eea457dc4bd5bbdb9d1a60ad5a0/build_tools/cmake/iree_macros.cmake#L49-L72
https://github.com/OpenAMP/open-amp/blob/8c0c0c386b5799b54faf9613a191f66dee76e400/README.md?plain=1#L173
Should we modify the definition to this more commonly used form? Doing so could improve compatibility with other 3rd party libraries.
### Verification
- [x] I have verified before submitting the report.
Contributor guide
Assessment
This issue has not been assessed yet.