[CMake] Creating a static lib from other static libs, HOW?
Goswin von Brederlow
brederlo at informatik.uni-tuebingen.de
Sun Sep 16 09:23:47 EDT 2007
"Brandon Van Every" <bvanevery at gmail.com> writes:
> On 9/15/07, Goswin von Brederlow <brederlo at informatik.uni-tuebingen.de> wrote:
>>
>> But how do I link libutil.a and libconsole.a into a combined
>> libcore.a? I tried setting
>
> FAQ. (I'm tired.)
>
> Cheers,
> Brandon Van Every
There are 2 things in the FAQ that could be relevant:
'Does CMake support "convenience" libraries?' would indicate that I
can't combine library objects into a single library. It doesn't say if
it means static or dynamic libraries though. Does it mean both?
'Why are libraries linked to my shared library included when something
links to it?' That indicates to me that setting
TARGET_LINK_LIBRARIES(merged liba lib) should have the desired effect
of linking libmerged.a, liba.a and libb.a into any binary linking
libmerged.a. Didn't happen. I have to manually
TARGET_LINK_LIBRARIES(binary merged liba libb).
Was that the FAQ part you were refering too?
MfG
Goswin
More information about the CMake
mailing list