[CMake] How to link static and shared libraries at the same time?

Ulrich Heinicke uheinicke at ibh-wf.de
Wed Mar 13 13:16:16 EDT 2013


Am 13.03.2013 17:49, schrieb Matthew Woehlke:
>
>
> On 2013-03-10 07:43, Ulrich Heinicke wrote:
>> I have a shared library in which i need must link some libraries. Five
>> of these libraries should be link as shared libraries, but one must be
>> linked as static library. How can i do this?
>
> Do you mean that there are static and shared versions of all these
> libraries, and you need to know how to force selection of the static
> flavor of a certain library?
>
> Otherwise I don't understand the problem; it should just work.
>
That's what i mean.


More information about the CMake mailing list