On Friday 04 November 2011, David Cole wrote: > On Fri, Nov 4, 2011 at 12:23 PM, Alexander Neundorf > <a.neundorf-w...@gmx.net> wrote: ... > > Looks like the first step to assigning include directories to libraries, > > so they are used automatically when linking against them. > > Is this also already in planning ? > > > > Alex > > No, not in "planning" so much as in "wishing." > > That sounds like another separate target property that may or may not > have the same exact value as the INCLUDE_DIRECTORIES property. Not all > clients will need all the same include_directories as the target > itself... Perhaps an additional property named > AUTO_INCLUDE_DIRECTORIES (or something similar that indicates it is > automatic) should be used for that purpose.
Yes. This should be similar to target_link_libraries() and target_link_libraries( LINK_INTERFACE_LIBRARIES ), right ? It could be named INTERFACE_INCLUDE_DIRECTORIES... It might also need to separate between those include directories used when linking against the library within the same project, and when linking against the library once it has been installed along with its headers. Alex -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake