Never mind, I figured out how to do it...<br><br>You can use target_link_libraries() (because target_link_libraries also accepts linker options) to do this kind of thing:<br><br>target_link_libraries(FOO -Wl,--start-group A B C -Wl,--end-group)<br>
<br><br><br><div class="gmail_quote">On Tue, Nov 10, 2009 at 12:30 PM, Steven Wilson <span dir="ltr">&lt;<a href="mailto:steven.wesley.wilson@gmail.com">steven.wesley.wilson@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a group of static archive libraries (.a libs) on Linux and because of the way the linker does symbol resolution I need to use the -Wl,--start-group and -Wl,--end-group linker options to group these libraries.   These linker options tell the linker to continue searching the libraries for symbols until all symbol resolution is accomplished.   On the command line these options need to appear like the following(or some equivalent variant thereof): -Wl,--start-group libA.a libB.a libC.a ... -Wl,--end-group.   I can put something together with CMake that can construct a custom command line to do this kind of thing, but I wanted to check and see if someone knew a good way to make this happen with CMake before I started.<br>

<br>Thanks,<br><br>Steve<br>
</blockquote></div><br>