[CMake] How to tell CMake to use --start-group and --end-group during linking?
Martin Apel
martin.apel at simpack.de
Fri Apr 18 05:13:30 EDT 2008
Hi,
I am currently trying to convert a big project containing Fortran and C
sources to use CMake. There are lots of circular dependencies between
libraries,
so I either have to specify libraries on the link line multiple times or
use the linker options --start-group and --end-group for ld on Linux.
It seems that CMake throws out multiple references to the same library
in the TARGET_LINK_LIBRARIES statement, but anyway I would rather use
--start-group and --end-group, so I don't have to hunt down all those
dependencies explicitly. Is there any way to make CMake use these options?
It is important to specify them on the right place on the command line,
i.e. --start-group before the first library and --end-group after the
last relevant.
Regards,
Martin
--
More information about the CMake
mailing list