No subject


Thu Aug 21 14:30:17 EDT 2008


the list (not only for shared libraries, but in general).<br>
<br>
Regards,<br>
<br>
Martin<br>
<div class="Ih2E3d"><br>
David Cole wrote:<br>
&gt; Maybe save and restore the CMAKE_SHARED_LINKER_FLAGS around your reset<br>
&gt; of it in the sub-CMakeLists.txt...?<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Sep 3, 2008 at 10:41 AM, Martin Apel &lt;<a href="mailto:martin.apel at simpack.de">martin.apel at simpack.de</a><br>
</div><div><div></div><div class="Wj3C7c">&gt; &lt;mailto:<a href="mailto:martin.apel at simpack.de">martin.apel at simpack.de</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt; &nbsp; &nbsp; Hi,<br>
&gt;<br>
&gt; &nbsp; &nbsp; I have defined the following in a top-level CMakeLists.txt:<br>
&gt; &nbsp; &nbsp; &nbsp;SET (CMAKE_SHARED_LINKER_FLAGS &quot;${CMAKE_SHARED_LINKER_FLAGS}<br>
&gt; &nbsp; &nbsp; -Wl,--unresolved-symbols=ignore-in-shared-libs&quot;)<br>
&gt;<br>
&gt; &nbsp; &nbsp; Now I&#39;d like to reset this for one specific library in a subdirectory<br>
&gt; &nbsp; &nbsp; (in a separate CMakeLists.txt added with ADD_SUBDIRECTORY to the main<br>
&gt; &nbsp; &nbsp; CMakeLists.txt). I tried to use<br>
&gt; &nbsp; &nbsp; &nbsp;SET_TARGET_PROPERTIES (FortranInterface PROPERTIES LINK_FLAGS<br>
&gt; &nbsp; &nbsp; -Wl,--unresolved-symbols=ignore-in-object-files&quot;)<br>
&gt; &nbsp; &nbsp; which reverses the effect of &quot;ignore-in-shared-libs&quot;.<br>
&gt; &nbsp; &nbsp; Unfortunately the<br>
&gt; &nbsp; &nbsp; linker rule contains the LINK_FLAGS before<br>
&gt; &nbsp; &nbsp; CMAKE_SHARED_LINKER_FLAGS, so<br>
&gt; &nbsp; &nbsp; this cannot be used to override the setting. I have also tried<br>
&gt; &nbsp; &nbsp; resetting<br>
&gt; &nbsp; &nbsp; CMAKE_SHARED_LINKER_FLAGS in the sub-CMakeLists.txt, but then it<br>
&gt; &nbsp; &nbsp; applies<br>
&gt; &nbsp; &nbsp; to all other<br>
&gt; &nbsp; &nbsp; libraries handled in this CMakeLists.txt as well.<br>
&gt;<br>
&gt; &nbsp; &nbsp; Any ideas, how I can solve this problem?<br>
&gt;<br>
&gt; &nbsp; &nbsp; Regards,<br>
&gt;<br>
&gt; &nbsp; &nbsp; Martin<br>
&gt;<br>
&gt; &nbsp; &nbsp; ____________<br>
&gt; &nbsp; &nbsp; Virus checked by G DATA AntiVirus<br>
&gt; &nbsp; &nbsp; Version: AVF 19.21 from 03.09.2008<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; CMake mailing list<br>
</div></div>&gt; &nbsp; &nbsp; <a href="mailto:CMake at cmake.org">CMake at cmake.org</a> &lt;mailto:<a href="mailto:CMake at cmake.org">CMake at cmake.org</a>&gt;<br>
<div class="Ih2E3d">&gt; &nbsp; &nbsp; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
</div>--<br>
<br>
Martin Apel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tel: &nbsp; &nbsp; 0049 8153 9288-47<br>
Software Architect &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;E-Mail: &nbsp;<a href="mailto:martin.apel at simpack.de">martin.apel at simpack.de</a><br>
<br>
INTEC GmbH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Tel: &nbsp; &nbsp; 0049 8153 9288-0<br>
Argelsrieder Feld 13 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Fax: &nbsp; &nbsp; 0049 8153 9288-11<br>
82234 Wessling &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;E-Mail: &nbsp;<a href="mailto:intec at simpack.de">intec at simpack.de</a><br>
Germany &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; URL: &nbsp; &nbsp; <a href="http://www.simpack.com" target="_blank">http://www.simpack.com</a><br>
<div class="Ih2E3d"><br>
____________<br>
Virus checked by G DATA AntiVirus<br>
</div>Version: AVF 19.22 from 03.09.2008<br>
<br>
<br>
</blockquote></div><br></div></div>

------=_Part_49900_9450958.1220718418087--


More information about the CMake mailing list