this is probably the same than the add_depenencies()
issue multiple users come across.
(e.g. How to create file-dependency for all sources of target?)
While this is documented, i think this is something that should be globally fixed maybe via a policy setting.
IMO: When A depends on a target B, you always want both:
- A is built after B
- A needs rebuild if B needs rebuild.