[CMake] creating static library with references to other .lib files

Jesper Eskilson jesper at eskilson.se
Fri Jun 15 08:31:48 EDT 2007


2007/6/15, kitts <kitts.mailinglists at gmail.com>:
>
> On Thursday 14 Jun 2007 12:23:07 pm Jesper Eskilson wrote:
> > Is it really impossible to pass an option to the linker when creating a
> > static library?
>
> I have not gone through the whole thread but i think the function
> SET_TARGET_PROPERTIES(TARGET LINK_FLAGS "XYZ") can do it.
>
> The problem i foresee  is that when you pass another library as a source
> file
> to a library, cmake may not pass this file as an argument when building
> your
> library.


Setting the LINK_FLAGS property does not work. CMake keeps track of the
dependency, so everything works nice inside CMake, but not when we ship the
library to our customers (since they only link with the original library).

-- 
/Jesper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070615/6ceef16f/attachment.htm


More information about the CMake mailing list