[cmake-developers] target_include_directories branch in stage

Alexander Neundorf neundorf at kde.org
Mon Nov 7 12:25:26 EST 2011


On Sunday 06 November 2011, Stephen Kelly wrote:
> Hi,
> 
> As discussed on the cmake user mailing list, I'm interesting in
> implementing the feature of target specific and configuration specific
> include
> directories.
> 
> http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/39090/focus
> =39114
> 
> I've pushed the target-include-directories branch to stage, which
> implements the feature. I started out as prototyping, but I ended up
> implementing API that I think makes sense. I have not merged it into next
> yet as it is not certain if it should be in the next release. I'd prefer
> it to be though if we can sort out the issues with what should be the
> target feature set.
> 
> David mentioned one issue is whether the include directories of a target
> property should overwrite those of the directory property (added with the
> command include_directories). Like others on the other thread, I would
> expect the final list of includes to be determined by addition. 

I replied over there to this question.

> For example:
> 
> project(foo)
> include_directories(${bar_INCLUDES})
> add_library(foo_lib ...)
> target_include_directories(foo CONFIG_TYPE DEBUG debug_helper.h)

Do you think a new command is necessary, and set_property(TARGET ... ) is not 
good enough ?

Alex



More information about the cmake-developers mailing list