I just received help on IRC.
The solution is to use an INTERFACE target and INTERFACE_LINK_LIBRARIES
(and NOT LINK_INTERFACE_LIBRARIES).
Hauke
On Wed Nov 19 2014 at 2:26:54 PM Hauke Heibel
wrote:
> Hi,
>
> I would like to declare an imported target which uses a header only
> library and which
Hi,
I would like to declare an imported target which uses a header only library
and which has some further link dependencies. If need be, I can specify a
use case for this.
I thought I could simply declare this target as
add_library(Foo::Foo UNKNOWN IMPORTED)
and then configure its dependencies