[cmake-developers] Generator expressisons in target properties

Daniel Pfeifer daniel at pfeifer-mail.de
Wed Nov 7 06:55:01 EST 2012


2012/11/6 Stephen Kelly <steveire at gmail.com>

> Stephen Kelly wrote:


> <lots of amazing stuff>


>
So that it is fully aware of all of its [transitive] dependencies (and any
> includes and compile defintions requirements) and I would use it like this:
>
>  add_executable(foo_exe ...)
>  target_link_libraries(foo_exe boost::mpl)
>

Yeah, I like that!!
That breaks cycles, but it also breaks transitive dependencies, no?


> I'm not sure if there's any good alternative to the _iface targets for
> cycle-avoidance, but if it's good enough, and can be implemented, I'd say
> it
> would be feature-prooven.


Why do we need to avoid cycles? CMake supports recursive dependencies among
static libraries. For header only libraries, cycles should not be
problematic either.

I would say the graph of interfaces may be acyclic, as long as there is at
most one shared library per strongly connected component.

Cheers, Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20121107/167d18aa/attachment.html>


More information about the cmake-developers mailing list