bf_editor_space_clip may build before bf_dna
leading to some header files it requires not
being there yet.
Repro is a little tricky, but here's the steps
- Have a virgin build folder, no make clean will not do it, it has to be brand new
- run make bf_editor_space_clip
- Build error since dna_type_offset.h does not exist yet.
adding BF_dna to the LIB section does not solve the problem,
why not? since we link all dep targets as INTERFACE which means
if you link me, you're gonna need these things... but i don't..
so even if you add BF_dna as a dependency in LIB the build system
is free to build BF_dna and BF_Editor_space_clip in any order it
desires as long as both build outputs are available when a
downstream target links them.
D12122 should offer relief here by allowing dependencies to be
expressed in proper terms, in the mean time, this ugly hack
will have to suffice.
unsure how many other sub projects are troubled by this, but people
reported issues with bf_editor_space_clip on chat.. we may have
to deal with these on an individual basis as they pop up..
yeah... I'm not thrilled about this either..