[cmake-developers] Interface includes and defines plumbing

Alexander Neundorf neundorf at kde.org
Mon Jan 28 12:14:59 EST 2013


On Wednesday 16 January 2013, Stephen Kelly wrote:
> Brad King wrote:
> > On 01/08/2013 09:07 AM, Stephen Kelly wrote:
> >> Done now, thanks.
> > 
> > Currently target_include_directories cannot be used with a RHS target
> > that has not yet been created.  This could be problematic for projects
> > that want circular include dependencies, especially with targets in
> > sibling directories.
> > 
> > Can the "non-target/relative-path argument" error be moved to generate
> > time when $<TARGET_PROPERTY:INTERFACE_INCLUDE_DIRECTORIES,BadTarget>
> > is evaluated?  Does this make sense?
> 
> It is probably possible.
> 
> Everything in the INCLUDE_DIRECTORIES property should be a relative path if
> added by include_directories(), and also if the property is populated
> directly, given http://www.cmake.org/Bug/view.php?id=13188 .

You mean "should be absolute", right ?


> So cmTarget::GetIncludeDirectories could probably be taught to
> cmGeneratorExpression::Split and treat anything non-relative as a target. A

"Non-absolute", right ?

Alex



More information about the cmake-developers mailing list