[CMake] Inheriting include directories from dependencies

Dmytro Ovdiienko dmitriy.ovdienko at gmail.com
Sat Jan 17 16:52:44 EST 2009


2009/1/16 Robert Dailey <rcdailey at gmail.com>

> Hi,
>
> 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()).
>
> 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?
>
> Thanks.
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


Hello Robert,

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.

Suppose we have ask developers about this feature.

Regards,
Dmytro Ovdiienko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090117/1fc66595/attachment.htm>


More information about the CMake mailing list