<div dir="ltr">Glad it worked! No I don't think it is automatically an include path, only the files in the current directory where your sources are should be by default an include path.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 2, 2014 at 9:05 PM, Chris Johnson <span dir="ltr"><<a href="mailto:cxjohnson@gmail.com" target="_blank">cxjohnson@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 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"><span class=""><div class="gmail_default">[100%] Building CXX object prog/CMakeFiles/prog.dir/prog.cpp.o</div></span><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><span class=""><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>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><font color="#888888"><br>
<br>
-Bill</font></span><div><div><br></div></div></blockquote></div></div></span></div>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br></blockquote></div><br></div>