<div dir="ltr"><div class="gmail_default" style="font-family:'courier new',monospace">I'm using Make as my build tool.  Here's the failing compile line with the -I paths.  Indeed, they're not quite correct.  This is with the suggested include_directories() directive. </div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace"><div class="gmail_default">[100%] Building CXX object prog/CMakeFiles/prog.dir/prog.cpp.o</div><div class="gmail_default">cd /sandbox/src/.build/prog && /usr/bin/c++    -I/sandbox/include -I/sandbox/src/src -I/sandbox/src/mylib    -o CMakeFiles/prog.dir/prog.cpp.o -c /sandbox/src/prog/prog.cpp</div><div class="gmail_default"><br></div><div class="gmail_default">Since the ../src/src path is wrong, I tried changing to include_directories(${CMAKE_SOURCE_DIR}) and that seems to work.  That seems to imply the top-level source is not part of the default include path, correct?</div><div class="gmail_default"><br></div><div class="gmail_default">Thanks,</div><div class="gmail_default">..chris</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 2, 2014 at 1:10 PM, Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com" target="_blank">bill.hoffman@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 12/2/2014 1:04 PM, Chris Johnson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Adding this directive does not seem to change the results at all,<br>
actually.  Am I missing something?​<br>
<br>
</blockquote>
<br></span>
What build tool are you using?  Can you show a verbose compile line? Then check the -I paths.  make VERBOSE=1 will do it for make.<span class="HOEnZb"><font color="#888888"><br>
<br>
-Bill</font></span><div class="HOEnZb"><div class="h5"><br></div></div></blockquote></div></div></div>