[CMake] debug/optimized include directories

Alexander Neundorf a.neundorf-work at gmx.net
Sun Nov 6 09:19:45 EST 2011


On Friday 04 November 2011, David Cole wrote:
> On Fri, Nov 4, 2011 at 12:23 PM, Alexander Neundorf
> <a.neundorf-work at 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


More information about the CMake mailing list