Enable OBJECT library "linking"
This MR tries to relax some (if not all) restrictions on OBJECT
libraries, so that they can be used as other targets together with target_link_libraries
.
Fixes #14778 (closed).
Topic-rename: object-library-linking
Edited by Brad King