[CMake] whole archive linkage

Adam adam707blue at gmail.com
Fri Jan 23 22:41:40 EST 2015


Hi All,

I have a library that must be linked with -Wl,--whole-archive -lyourlib

The library contains a static which registers itself in its constructor.
This problem is described here http://stackoverflow.com/a/842770

Is there a target property I can set on this library so consumers of the
library automatically get whole archive linkage when including this library.


Regards,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150124/8fccf81c/attachment.html>


More information about the CMake mailing list