<br><br><div class="gmail_quote">2009/1/16 Robert Dailey <span dir="ltr"><<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>Currently I'm specifying include directories on a per-project basis. Suppose I have projects A, B, and C. Project C would depend on A and B by specifying A and B in a call to target_link_libraries(). Both projects A and B have include directories that I set via a call to include_directories() and the directories are not the same. The include directories I use are those given to me by various Find modules (find_package()).<br>
<br>The thing is that include files in A and B (Which I reference in the source code for project C) include header files in external dependencies of A and B. This means that project C will not compile unless it has the include directories available for the dependencies of both A and B. Is there a built in feature that facilitates inheriting include directories from A and B and placing them into C implicitly? If not, is there some work-around for this?<br>
<br>Thanks.<br>
<br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br>Hello Robert,<br><br>I have a big project with wide structure and I interested in include directory inheriting too. I believe if project A depends on B in 90% cases it uses include directories from B and B::include_directories.<br>
<br>Suppose we have ask developers about this feature.<br><br>Regards,<br>Dmytro Ovdiienko<br>