Need a way to apply 'BEFORE' (or 'AFTER') for includes brought by interfaces of imported targets
When building locally I can successfully use
target_include_directories(foo BEFORE PUBLIC /some/path)
But importing existing library which incapsulates necessary includes, compile definitions, etc. as any real library or pure interface, the only thing I can do is 'target_link_libraries()'.
However last doesn't provide functionality for 'BEFORE' (or 'AFTER') ordering, and I even can't figure out how to runaround this limitation.
The only thought is to read interface property for includes from imported lib and then manually add it's content as 'target_include_directories()' with desired 'BEFORE' flag. However that is, first, not so target-centric approach, and second, will also left original include came with target in the list (however it looks like last is not critical).