[cmake-developers] Interface includes and defines plumbing

Stephen Kelly steveire at gmail.com
Mon Jan 28 12:15:54 EST 2013


Alexander Neundorf wrote:

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

Yes. 

> 
>> So cmTarget::GetIncludeDirectories could probably be taught to
>> cmGeneratorExpression::Split and treat anything non-relative as a target.
>> A
> 
> "Non-absolute", right ?


Yes.

Thanks,

Steve.





More information about the cmake-developers mailing list