[CMake] build a shared library from static libraries

packadal packadal at gmail.com
Mon Mar 3 03:07:31 EST 2008


Hi
I am trying to build a shared library from many static libs, so I can divide
my compilation in subdirectories.
But I don't get how i should do this.
I tried to use TARGET_LINK_LIBRARY( first_lib, second_lib, ...)
But cmake says : " Attempt to add link library "first_lib", to target
"second_lib", which is not built by this project."
Is there a better way to di this ?
Thanks in advance

-- 
- Always keep in mind that you may be wrong -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080303/72870374/attachment.html


More information about the CMake mailing list