You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use it in copy_rtl_files.cmake like so, but for some reason it doesn't work and returns always empty strings (I'm doing something wrong for sure).
Also keep in mind that the the generator expressions are evaluated at the generate phase, after the configure phase.
This means that if you use it for OUTDIR variable, and later if you build a file path using that variable (file generated by a command), in the _SOURCES of the IP there will be a generator expression at configure time, which might be a bit annoying.
I would maybe not use generator expression for OUTDIR or anything that influences file paths, at this point.
You can decide if you think its worth using them for simple CLI options, I am not sure at this point its better than having an if() clause.
P.S. for OUTDIR, I will most certainly add a macro that will deal with that so it reduces a bit the code in backend functions, as OUTDIR will always be set the same way
Generator expressions can be used to simplify some of the backend functions.
For example if a function has following optional arguments:
Instead of doing
We can do this:
These expressions can be more complex generator expressions
The text was updated successfully, but these errors were encountered: