[cmake-developers] Introducing the ${Foo_TARGETS} variable (IntroduceTARGETSVariable branch)

Brad King brad.king at kitware.com
Mon Jul 29 16:43:53 EDT 2013


On 07/29/2013 04:10 PM, Alexander Neundorf wrote:
> On Monday 29 July 2013, Stephen Kelly wrote:
>> 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.

Not all targets provided in a package need to be listed by the package
config file in the <pkg>_LIBRARY_TARGETS variable.  The restriction
here is that those that are listed in the variable need to have
INTERFACE_INCLUDE_DIRS set, even if empty.

-Brad



More information about the cmake-developers mailing list