I think I might know what it is...<div><br></div><div>I do the following:</div><div><br></div><div>include_directories( Z )</div><div>add_library( A )</div><div>include_directories( A ) # Include "A"'s include directory</div>
<div>add_library(B) # B depends on A, and thus includes its header directory</div><div><br></div><div>My assumption was that, at configuration time, a snapshot of the current include directories is taken and used, so thus any further ones that are added will not affect previously created targets in the same directory. However, apparently directory properties are processed at generation time, so this is why I'm seeing this behavior.</div>
<div><br></div><div>Can anyone confirm?</div><div><br><div class="gmail_quote">On Thu, Jun 7, 2012 at 8:01 PM, Robert Dailey <span dir="ltr"><<a href="mailto:rcdailey.lists@gmail.com" target="_blank">rcdailey.lists@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also,
<span style="line-height:22px;text-align:justify;font-size:11px;font-family:Verdana,Arial,Helvetica,sans-serif">CMAKE_INCLUDE_CURRENT_DIR is not enabled. In addition, I do not see the current *binary* directory included in the list of include directories (which would appear if I had </span>
<span style="line-height:22px;text-align:justify;font-size:11px;font-family:Verdana,Arial,Helvetica,sans-serif">CMAKE_INCLUDE_CURRENT_DIR </span> enabled)<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">
On Thu, Jun 7, 2012 at 7:56 PM, Robert Dailey <span dir="ltr"><<a href="mailto:rcdailey.lists@gmail.com" target="_blank">rcdailey.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For some reason, I'm seeing CMAKE_CURRENT_SOURCE_DIR (its value) show up in my list of include directories for some of the visual studio 2008 projects that CMake generates. I'm not explicitly including it in my call to include_directories(), so I'm not sure what is doing it. I debug the code that passes includes to include_directories() command, and that directory is not in the list.<div>
<br></div><div>Any ideas? Thanks in advance.</div>
</blockquote></div><br>
</div></div></blockquote></div><br></div>