[cmake-developers] INTERFACE_LIBRARY target type
Alexander Neundorf
neundorf at kde.org
Fri May 3 11:58:41 EDT 2013
On Friday 03 May 2013, Stephen Kelly wrote:
> Brad King wrote:
> > On 05/02/2013 11:26 AM, Stephen Kelly wrote:
> >> Perhaps we could do aliasing with a target property instead?
> >>
> >> add_library(foo SHARED foo.cpp)
> >> set_property(TARGET foo APPEND PROPERTY ALIAS_NAME KF5::foo)
> >
> > No, I like to be able to say that all logical target names are
> > created by an add_* call. Actually your point about scopes of
> > target names means that ALIAS targets should be scoped like
> > IMPORTED targets since their purpose is to "self-import". That
> > is an argument for ALIAS targets to be built on IMPORTED targets.
>
> I wouldn't say the primary purpose is to self-import, and therefore they
> should behave as IMPORTED targets. Their primary purpose is to be an alias
> for another target.
Ok. So why is this needed in cmake ?
Alex
More information about the cmake-developers
mailing list