[Cmake] Re: control of order of libs

Bill Hoffman bill.hoffman at kitware.com
Fri Oct 18 13:25:10 EDT 2002


I do not think it is possible, in fact, I did not think it was possible to
combine two static libraries from the command line.  How do you do that?
I don't think the ar command takes -l arguments.    You may be able to do
this with a custom command that modifies the library after the build.

-Bill


At 05:34 PM 10/18/2002 +0100, David Mellor wrote:
>Thanks Amitha.
>Putting the "-llib" string in directly has sorted out the library ordering
>problem. CMake is still throwing all the libraries into the final executable
>though. I really don't want to have to give dozens of libraries to anyone I
>give my software to and make them link it all at the executable level. Is it
>not possible with cmake to compile a static library into another static
>library, so I just give one neat library to people that contains everything
>I need?
>Many thanks,
>
>David
>
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake 





More information about the CMake mailing list