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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to