-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake: toolchain files do not match the standard way of doing #648
Comments
@massonal The toolchain files are significantly more complex than the cmake-toolchains. Here you can find some documentation concerning the variables in the toolchain files: |
Thanks for the reply, and the doc pointer!
Ok, so this is an actual build decision here 👍 I will accept that, although this is a major deviation from the CMake model I really don't approve of.
These files are the inputs to the CMakeLists.txt generation, right? So, shouldn't it be possible to extend the portability to the CMakeLists.txt as well? The farther the better IMO, unless there are some non-portable inputs as well?
Yes, I can tell! I also realize I have been quite terse in my third bullet point, so here are some more details (I also talk about that a bit in #649 ) : CMakeLists.txt and the toolchain have very different purposes in the CMake model, and should not have to communicate with one another:
E.g., the toolchain should not care about |
The
A CMSIS project is not self-contained under an umbrella directory as most CMake projects, but it is rather spread over different places. For clarity it has been decided to use absolute paths. It should be possible to extend the portability if there is a good reason for that.
It should be feasible, but it would just shift the features from one file or representation into another. I see more value introducing such features in the CMake upstream. |
Hello,
I have been studying the CMake files generated to build code with cbuild (CMakeLists.txt + GCC/IAR/AC6.cmake). I have found that the usage of the "toolchain files" does not match with the standard "way-of-doing" (cf. cmake-toolchains(7) — CMake 3.25.1 Documentation). You can read below detailed examples of some shortcomings I have found that relate to this issue.
My point is, is this at all intentional? If so, I think it should be documented somewhere, in order not to confuse readers expecting standard CMake practices. Or maybe there is room for improvement on this front?
Example shortcomings:
The text was updated successfully, but these errors were encountered: