<div class="gmail_quote">2011/7/13 Andreas Pokorny <span dir="ltr"><<a href="mailto:andreas.pokorny@gmail.com">andreas.pokorny@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
2011/7/13 Daniel Pfeifer <<a href="mailto:purplekarrot@gmail.com">purplekarrot@gmail.com</a>>:<br>
<div class="im">> 2011/7/13 Andreas Pokorny <<a href="mailto:andreas.pokorny@gmail.com">andreas.pokorny@gmail.com</a>><br>
</div>>> [...]<br>
<div class="im">>> add_library(foo ....)<br>
>> target_include_paths(foo include/foo )<br>
>> target_include_targets(foo bar)<br>
><br>
> target_include_targets would not even be required, target_link_libraries<br>
> could handle that. Whenever a target is linked to a library, it also should<br>
> use the appropriate include directories.<br>
<br>
</div>So you mean relying on the status of the assembled "include_directories".<br>
Not sure if you want that behavior, since include_directories just adds<br>
directories while descending the directory tree.<br></blockquote><div><br>I meant relying on target_include_paths.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
><br>
>> [...]<br>
<div class="im">>><br>
>> The existing include_directories command could "call"<br>
>> target_include_paths(..) internally<br>
>> for all targets defined afterwards..<br>
><br>
> This works iff there is a 1:1 relationship between targets and directories.<br>
> Boost also has components that provide multiple libraries. And it also has<br>
> (quite a lot) of header-only libraries, these are components that provide no<br>
> library target at all.<br>
<br>
</div>I admit that a a no-op or dummy target is missing for header only<br>
libraries. But<br>
I do not get the part with the 1:1 relationship? Could you elaborate...<br></blockquote><div><br>I misread what the include_directories command would do using your approach. My bad. Forget about the 1:1 relationship.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Nonetheless I believe that your approach allows interesting uses for<br>
other configuration problems.<br></blockquote><div><br>Thanks!<br><br>cheers, Daniel<br></div></div><br>