<div dir="ltr"><div dir="ltr"><div dir="ltr">In other words, when providing the <span style="color:rgb(51,51,51)">EXPORT_LINK_INTERFACE_</span><span style="color:rgb(51,51,51)">LIBRARIES flag for exported targets (in main project that was changed to CMP0022 NEW), I was expecting the </span><font color="#333333">IMPORTED_LINK_INTERFACE_LIBRARIES property set in the <exported_target>.cmake file so that projects that import it (with CMP0022 OLD) can see it. Instead, I am only seeing the INTERFACE_LINK_LIBRARIES property set.</font></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 9, 2018 at 1:58 PM Hendrik Greving <<a href="mailto:hendrik.greving.smi@gmail.com">hendrik.greving.smi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">If CMP0022 is set to new, since project is still using LINK_INTERFACE_LIBRARIES I have added <span class="m_-5321692779667420541gmail-n" style="color:rgb(51,51,51)">EXPORT_LINK_INTERFACE_LIBRARIES to install(EXPORT) and export() calls. Looking at the generated exported cmake files, I only see the INTERFACE_LINK_LIBRARIES link property set. There are downstream projects that are using the previously mentioned project importing targets from it. These downstream projects still have CMP0022 set to OLD. Will this work? My understanding is that these downstream projects now don't see the linked libraries since they will ignore </span><span style="color:rgb(51,51,51)">INTERFACE_LINK_LIBRARIES?</span></div><div dir="ltr"><span style="color:rgb(51,51,51)"><br></span></div><div><span style="color:rgb(51,51,51)">Is it possible to achieve both, and have the main project generate the </span>LINK_INTERFACE_LIBRARIES properties with CMP0022 set to NEW?</div></div></div></div>
</blockquote></div>