I believe what you are looking for in the CMake 3.12 improvements to
object libraries. In 3.12 the target_link_libraries command now
supports linking to an object library to embed the object files ( only
on direct dependencies, no propagation of .objs ) and also propagates
usage requirements like
Hi,
is there a way to "join" an the OBJECT library with a SHARED library it creates?
The abclib and its component abc_tmp, all .c file have #include "foo.h":
add_library(abc_tmp OBJECT z1. z2.c)
# generate...
add_library(abclib SHARED $ generated.c)
Then adding the library foo,