MantisBT - CMake
View Issue Details
0001968CMakeCMakepublic2005-06-23 10:262013-03-04 08:38
Bradley Lowekamp 
Stephen Kelly 
lowfeaturealways
closedfixed 
 
CMake 2.8.10CMake 2.8.10 
0001968: Per-target or per-source include directories
Some times it is needed to vary the include directories on a per target or per source file basis in a directory. Currently, include directories can only be varied on a directory scope basis.

The requested feature is to add command or property variables to add include directories on a per target (or per source files) basis.
No tags attached.
related to 0008189closed Kitware Robot set include directories as a source file property 
Issue History
2007-12-05 02:21Steven Van IngelgemNote Added: 0009833
2008-06-30 05:42Guillaume ChevallereauNote Added: 0012568
2008-09-11 12:08Bill HoffmanAssigned ToBill Hoffman => Brad King
2011-02-15 13:34Andreas PakulatNote Added: 0025441
2011-02-15 13:39Brad KingRelationship addedrelated to 0008189
2012-08-13 10:36Brad KingStatusassigned => backlog
2012-08-13 10:36Brad KingNote Added: 0030475
2012-08-27 07:22Stephen KellyNote Added: 0030774
2012-08-27 07:23Stephen KellyAssigned ToBrad King => Stephen Kelly
2012-08-27 07:23Stephen KellyStatusbacklog => assigned
2012-09-17 14:23Stephen KellyTarget Version => CMake 2.8.10
2012-10-01 12:18Stephen KellyNote Added: 0031116
2012-10-01 12:18Stephen KellyStatusassigned => resolved
2012-10-01 12:18Stephen KellyFixed in Version => CMake 2.8.10
2012-10-01 12:18Stephen KellyResolutionopen => fixed
2013-03-04 08:38Robert MaynardNote Added: 0032461
2013-03-04 08:38Robert MaynardStatusresolved => closed

Notes
(0009833)
Steven Van Ingelgem   
2007-12-05 02:21   
related to this it would be nice to have: INCLUDE_DIRECTORIES(DEBUG mswd OPTIMIZED msw) (just like with the libraries).
(0012568)
Guillaume Chevallereau   
2008-06-30 05:42   
It would be usefull to have the same for link_directories and add_definitions.
(0025441)
Andreas Pakulat   
2011-02-15 13:34   
Isn't this a partial dupe of http://public.kitware.com/Bug/view.php?id=8189? [^]
(0030475)
Brad King   
2012-08-13 10:36   
Sending issues I'm not actively working on to the backlog to await someone with time for them.

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it:

 http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer or contributor who has the bandwidth to take it on.
(0030774)
Stephen Kelly   
2012-08-27 07:22   
Treating the source-file specific include directories portion of a duplicate of 0008189, what remains is only the configuration-specific part.
(0031116)
Stephen Kelly   
2012-10-01 12:18   
In CMake 2.8.10 you can use

set_property(TARGET foo PROPERTY INCLUDE_DIRECTORIES
  "/foo/bar"
  "$<$<CONFIG:Debug>:/debug/only>"
  "$<$<CONFIG:Release>:/release/only>"
)

Considering that the source-files portion of this bug report is a duplicate of 0008189, this bug is now implemented.
(0032461)
Robert Maynard   
2013-03-04 08:38   
Closing resolved issues that have not been updated in more than 4 months.