Adding a dependency to an IMPORTED target is silent
This code should probably have some kind of warning:
add_library(imported UNKNOWN IMPORTED)
add_dependencies(imported some-target)
because imported
doesn't exist at build time, this dependency actually has no effect. This might still work for INTERFACE
targets since they get consumed into the transitive closure of dependers.
See #19145 (closed) which should address this issue as well.