<div dir="ltr">Hi,<div>I understand vaguely why OBJECT libraries can't link against other targets, but I don't think the restriction in place needs to be so constrained.  Consider the following:</div><div><br></div><div>* A target is being create as an OBJECT library</div><div>* A number of other targets are defined as INTERFACE target where they only set include paths, compiler options, etc.</div><div><br></div><div>How is it possible to communicate the dependencies expressed in an INTERFACE target to an OBJECT library?  So far the only method I've found that works is to use a handful of generator expressions, which seems like a lot of work for something that would just work if I could "link" the INTERFACE library against the OBJECT library.</div><div><br></div><div>Here's what I have to do:</div><div><br></div><div><div>target_compile_features(tgt PUBLIC</div><div>    $<TARGET_PROPERTY:tgt_dep,COMPILE_FEATURES></div><div>)</div><div>target_include_directories(tgt PUBLIC</div><div>    $<TARGET_PROPERTY:tgt_dep,INCLUDE_DIRECTORIES></div><div>)</div><div>target_compile_options(tgt PUBLIC</div><div>    $<TARGET_PROPERTY:tgt_dep,COMPILE_OPTIONS></div><div>    $<TARGET_PROPERTY:tgt_dep,COMPILE_FLAGS></div><div>)</div><div>target_compile_definitions(tgt PUBLIC</div><div>    $<TARGET_PROPERTY:tgt_dep,COMPILE_DEFINITIONS></div><div>)</div></div><div><br></div><div>thanks!</div><div>wes</div></div>