[cmake-developers] Introducing the ${Foo_TARGETS} variable (IntroduceTARGETSVariable branch)
Alexander Neundorf
neundorf at kde.org
Thu Aug 22 16:59:52 EDT 2013
On Tuesday 20 August 2013, Stephen Kelly wrote:
> Alexander Neundorf wrote:
> >> I don't see any particular reason to get it into 2.8.12. From the KDE
> >> perspective, I think it would be more useful to get a CMake version with
> >> ALIAS targets
> >
> > I still don't know what for.
> > Can it do anything I can't do by simply setting a variable to the aliased
> > target(s) ?
>
> http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/7370/focu
> s=7394
Ah, that one.
I didn't understand that back then.
Does that mean that the export() call now happens later, so that in the
following line the file does not yet exist, so the imported targets cannot be
loaded ?
How does the alias target help with that ?
> >> and double-colons-means-IMPORTED.
> >
> > I haven't followed closely.
> > Does this mean creating a normal target which contains "::" will be a
> > cmake error ?
>
> Something like that, yes, with a policy.
And I guess creating an imported target without "::" will still be ok ?
Alex
More information about the cmake-developers
mailing list