Closed
Description
I'm trying to embed a few dependencies into a shared library. It seems impossible to set compiler flags on a group of source files gathered by files()
. But building static libraries of the dependencies with -fPIC
and bundling them into the shared library with -Wl,--whole-archive
or extract_all_objects
seems inconvenient and a bit hacky.
I'd like to have an object library which is just a bunch of object files that I can set compiler flags as a group and add to any real executable or library target.
Activity