[cmake-developers] OBJECT library on left-hand-side of target_link_libraries

Ben Boeckel ben.boeckel at kitware.com
Wed Jul 8 14:14:23 EDT 2015


On Wed, Jul 08, 2015 at 19:53:31 +0200, Tamás Kenéz wrote:
> Is this restriction, that an OBJECT library can't be on the left hand side
> of
> target_link_libraries, is it a hard, final decision? Or is this issue
> open for a possible improvement which would allow this and would forward
> the link dependencies to the main target the OBJECT library is incorporated
> into?

I started a branch to do this, but it is a deep rabbit hole. See this
thread:

    http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/12509

Development to fix this would be accepted; I'll try and write up the
requirements/features Brad and I figured out later today.

--Ben


More information about the cmake-developers mailing list