[feature request] --start-group --end-group support
i'm currently trying to bundle a 3rdparty dependency that comes with a bunch of static libraries. the gnu linker requires the static libs to be topologically sorted according to the dependencies. however this requirement is relaxed inside --start-group
/ --end-group
arguments.
using something like this:
target_link_libraries(example PUBLIC "-Wl,--start-group" MY::Lib "-Wl,--end-group")
doesn't have the desired effect: the different arguments can be reorganized to "-Wl,--start-group -Wl,--end-group ${allthelibs}", at least when MY::Lib
is a (conan-generated) interface library.
it would be nice if cmake could support this use case in one way or another (it seems that Modules/FindBLAS.cmake
manually works around this kind of issues, too)