IMPORTED_LINK_DEPENDENT_LIBRARIES incorrectly populated with private link libraries
When a library links against another privately, and we export only the former but not the latter, we would expect the generation step to always succeed.
However, if we have a system library added via e.g. link_libraries(), it is made part made of explicitLibraries in cmGeneratorTarget::ComputeLinkInterfaceLibraries(). Hence, also libraries marked as part of the private link interface of the exported library are added to IMPORTED_LINK_DEPENDENT_LIBRARIES as part of cmGeneratorTarget::ComputeLinkInterface().
The attached file acts as a MWE.CMakeLists.txt
Edited by Brad King