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.


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to