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