[cmake-developers] Introducing the ${Foo_TARGETS} variable (IntroduceTARGETSVariable branch)
Alexander Neundorf
neundorf at kde.org
Mon Jul 29 16:10:26 EDT 2013
On Monday 29 July 2013, Stephen Kelly wrote:
> Alexander Neundorf wrote:
> > So it can be used in tll() calls to link against the library (package).
> > What makes it differ from Foo_LIBRARIES, is that CMake checks that each
> > of the items listed in this variable
> > * is an existing target
> >
> > * has the INTERFACE_INCLUDE_DIRS property set.
>
> Are you really certain it is always an error for a target to not set this?
I think so.
If I want to use symbols from a library, I should include its headers, and for
that the include dirs need to be known.
For header-only libraries even more.
Are there cases where this is not the case ?
Don't know about Fortran.
Alex
More information about the cmake-developers
mailing list