[CMake] How to create a static library out of other static libraries in CMAKE ?

Xiangyun Kong xykong at yahoo.com
Sun Jun 14 21:55:15 EDT 2009


I take it back, even I specify the full names, 
the library is built without taking those static libraries linked
into the target library.

Thanks.

Xiangyun

--- On Sun, 6/14/09, Xiangyun Kong <xykong at yahoo.com> wrote:

> From: Xiangyun Kong <xykong at yahoo.com>
> Subject: Re: [CMake] How to create a static library out of other static libraries in CMAKE ?
> To: "Tyler Roscoe" <tyler at cryptio.net>
> Cc: cmake at cmake.org
> Date: Sunday, June 14, 2009, 6:41 PM
> 
> It works if I specify the full name of the libraries
> including the extension. But I would like to use
> a system-independent names of the libraries.
> 
> Thanks.
> 
> Xiangyun
> 
> 
> 
> 
> --- On Sun, 6/14/09, Tyler Roscoe <tyler at cryptio.net>
> wrote:
> 
> > From: Tyler Roscoe <tyler at cryptio.net>
> > Subject: Re: [CMake] How to create a static library
> out of other static libraries in CMAKE ?
> > To: "Xiangyun Kong" <xykong at yahoo.com>
> > Cc: cmake at cmake.org
> > Date: Sunday, June 14, 2009, 5:44 PM
> > On Sun, Jun 14, 2009 at 03:40:56PM
> > -0700, Xiangyun Kong wrote:
> > > Is there a way in CMAKE to create a static
> library out
> > of 
> > > existing static libraries and object files ?
> > 
> > Does something like this work?
> > 
> > add_library (myLib STATIC ${some_libraries}
> > ${some_object_files})
> > 
> > 
> > tyler
> > 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
> 


More information about the CMake mailing list