spread common defs to all targets#18
Conversation
👋 Hello antmak, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
|
@antmak In the modern cmake preferred way to have target specific commands. In the changelist, I didn't see many lines removed for every chip. Could you explain what is wrong with the existing command? |
|
@erhankur Before the adding, we have the next command line for building a target's object You can see no any So we need adding the defs for every target on the low level: I used next to the change, with similar semantic. So you think we need to add the explicit |
|
Thank. Got it. That’s the issue we discussed earlier. Using a global makes sense here. Later, we can consider adding a setup_target() function to eliminate all the repeated patterns. |
add_compile_definitions()instead of manytarget_compile_definitions()for every chip