[CMake] Double linking / linking static libraries

Dennis Schridde devurandom at gmx.net
Wed Aug 4 02:52:59 EDT 2010


On Wednesday 04 August 2010 08:30:49 Dennis Schridde wrote:
> Hi!
> 
> We
have a problem in our cmake project, where cmake links all libraries
> two
times. This makes it impossible to link static libraries.
> The libraries
>
appear only once in target_link_libraries() and that also only appears
>
once.
P.S: Some more info:
* link.txt also contains the linking instructions
two times.
* The various ..._LIBRARY variables contain the library only
once.
* When linking the 2nd time, the instructions do not appear in the
same order as the first time.
* I find the libraries which are doubly linked
using find_library.
* I also set link_directories to paths containing the
libraries.

--Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100804/c611a1da/attachment.pgp>


More information about the CMake mailing list