<div dir="ltr">I read the docs about
LINK_INTERFACE_MULTIPLICITY too.<div>But I'm not in the situation of a "cyclic dependency" so I 'm not sure if it solve my problem.</div><div>In my case (with B A and ImpLib) what would be the syntax?</div></div><br><div class="gmail_quote"><div dir="ltr">Il giorno mar 6 nov 2018 alle ore 06:30 Robert Maynard <<a href="mailto:robert.maynard@kitware.com">robert.maynard@kitware.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The target_link_libraries has a property called<br>
LINK_INTERFACE_MULTIPLICITY that should help you out.<br>
<a href="https://cmake.org/cmake/help/v3.13/command/target_link_libraries.html#cyclic-dependencies-of-static-libraries" rel="noreferrer" target="_blank">https://cmake.org/cmake/help/v3.13/command/target_link_libraries.html#cyclic-dependencies-of-static-libraries</a><br>
<br>
<br>
On Tue, Nov 6, 2018 at 8:24 AM scrgiorgio <<a href="mailto:scrgiorgio@gmail.com" target="_blank">scrgiorgio@gmail.com</a>> wrote:<br>
><br>
> Thanks for the help,<br>
><br>
> trying this (or any combination):<br>
><br>
> target_link_libraries(MyExe B)<br>
> target_link_libraries(MyExe A )<br>
> target_link_libraries(MyExe ImpLib)<br>
><br>
> I get this order:<br>
><br>
> 'B;...whatever...;A;ImpLib"<br>
><br>
> and the last past is causing the problem. Apparently there is no way to<br>
> change the right part (-Wl,--start-group -Wl,--end-groun sometimes work,<br>
> sometimes not).<br>
> Any advice?<br>
><br>
><br>
><br>
><br>
> --<br>
> Sent from: <a href="http://cmake.3232098.n2.nabble.com/" rel="noreferrer" target="_blank">http://cmake.3232098.n2.nabble.com/</a><br>
> --<br>
><br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
><br>
> CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>