-
Notifications
You must be signed in to change notification settings - Fork 341
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
allow settings paths through env #226
allow settings paths through env #226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Could almost be merged as is .
README.md
Outdated
@@ -37,7 +37,9 @@ It will compile a project for the `F4` family by default, but you can also compi | |||
# Usage | |||
|
|||
First of all you need to configure toolchain and library paths using CMake variables. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could add the variables names (or an example of variable name) here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good idea. maybe even a concrete example for a file which can be sourced to load all necessary env variables at once (I find this really convenient compared to very large CMake commands, and the path stays clean if it is not used)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of commit 08ceb4b it seems already excellent to me. It's better than what I expected. I will review When you remove WIP.
Please note also there are also Windows users like me, so keep generic (even if we can consider Linux as default choice)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually used .sh
scripts on Windows with git bash or MinGW64. I am not totally sure whether this belongs in the README, but a regular CMake workflow generally involves more scripting and I found scripts like that to set up environments quickly extremely useful. I added this for the powershell on Windows as well, but I need to test this. I read somewhere that it would not be possible with powershell like that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .sh only is OK don't worry. I just wanted to heads up. Your work is great.
Co-authored-by: Julien Staub <atsju2@yahoo.fr>
No worry I just test some Github features :) |
Okay, all okay now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Hish15 Please review. To met this is 🥇
Plus it's super helpful. Now I can set the path to cubes and easily run tests on branches without additional script or cmakelist modification
Hi all, I understand the need covered by this feature, but isn't this what cmake toolchain files are meant? I am not against the feature, but needed to open the discussion to be sure we are headed where we want. |
Fair point. I would argue this way:
As I see benefits with limited risks of regression and user errors I would recommend integrating it. |
Builds on #187 , documentation extended.
closes #187