<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 24, 2014 at 1:21 AM, Stephen Kelly <span dir="ltr"><<a href="mailto:steveire@gmail.com" target="_blank">steveire@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Andrew Fuller wrote:<br>
<br>
> It seems absolute paths are necessary. eg:<br>
><br>
> target_include_directories( MyTarget PRIVATE<br>
> $<$<PLATFORM_ID:Linux>:${CMAKE_CURRENT_SOURCE_DIR}/some/dir> )<br>
><br>
> will perform as expected.<br>
><br>
> Is this behaviour expected (and should be documented) or should I file a<br>
> bug?<br>
<br>
</div>CMake doesn't know at configure-time what the $<...> at the start of the<br>
path will evaluate to at generate time (It could even be different things,<br>
depending on the config).</blockquote><div><br></div><div>Oh okay. I didn't realize that expanding relative paths to absolute would be done prior to evaluating the generator expression. Now that I know that detail the current behaviour is understandable.</div>
<div><br></div><div>Thanks for the clarification.</div></div></div></div>