[cmake-developers] target_link_libraries and --start-group/--end-group ?

Robert Goulet Robert.Goulet at autodesk.com
Mon Jan 5 14:09:03 EST 2015


Hi,

My project needs to link with an external library which actually consist of a set of libraries. Adding these libs using target_link_libraries should be working just fine but unfortunately these libs have a bunch of circular dependencies, so it fails. In the makefile, we link with these libs using this syntax:

-Wl,--start-group ...libs... -Wl,--end-group

...so that the linker is able to correctly find all symbols. What's the proper way to deal with this using CMake? I tried to add the group flags to target_link_libraries but it does not work. Thanks!



Robert Goulet
Senior Software Developer
Games Solutions Group
Autodesk Media & Entertainment

MAIN +1 514 393 1616
DIRECT +1 514 954 3911
MOBILE +1 438 397 4075

Autodesk, Inc.
10 Rue Duke
Montreal, QC, H3C 2L7
www.autodesk.com<http://www.autodesk.com/>

[Description: Email_Signature_Logobar]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150105/98c52cd8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 14277 bytes
Desc: image001.jpg
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150105/98c52cd8/attachment-0001.jpg>


More information about the cmake-developers mailing list