Brad King wrote: > On 11/6/2011 5:45 PM, Stephen Kelly wrote: >> As discussed on the cmake user mailing list, I'm interesting in >> implementing the feature of target specific and configuration specific >> include directories. > > Thanks for working on this.
Thanks for the feedback. <snip> > The INCLUDE_DIRECTORIES property of a target must be the *only* list > from which the final include directory list is constructed. When a target > is created the current directory-level include directories must be used > to initialize the list. Further include_directories() calls in the same > directory must append not only to the directory-level list but also to > the property for all existing targets. At any intermediate point a > target's property can be modified independently (see the set_property > command example below). Yes, it should be possible to do this. I'll try it out. > Now we can return to per-config include directories. To incorporate them > into the same single list, we will need some kind of markup on a per-entry > basis. This is similar to the "debug/optimized" keywords used by the > target_link_libraries command, but must be more well designed. Perhaps > a syntax similar to generator expressions in custom commands can work. > I'll have to think more about it. Ok. I thought the BEFORE keyword for target_include_directories would be useful there, but if there's a better way to do it, that's fine with me too. Thanks, Steve. -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers