View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001968CMakeCMakepublic2005-06-23 10:262013-03-04 08:38
ReporterBradley Lowekamp 
Assigned ToStephen Kelly 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionCMake 2.8.10Fixed in VersionCMake 2.8.10 
Summary0001968: Per-target or per-source include directories
DescriptionSome 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.
TagsNo tags attached.
Attached Files

 Relationships
related to 0008189closedKitware Robot set include directories as a source file property 

  Notes
(0009833)
Steven Van Ingelgem (reporter)
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 (reporter)
2008-06-30 05:42

It would be usefull to have the same for link_directories and add_definitions.
(0025441)
Andreas Pakulat (reporter)
2011-02-15 13:34

Isn't this a partial dupe of http://public.kitware.com/Bug/view.php?id=8189? [^]
(0030475)
Brad King (manager)
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 (developer)
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 (developer)
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 (manager)
2013-03-04 08:38

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2007-12-05 02:21 Steven Van Ingelgem Note Added: 0009833
2008-06-30 05:42 Guillaume Chevallereau Note Added: 0012568
2008-09-11 12:08 Bill Hoffman Assigned To Bill Hoffman => Brad King
2011-02-15 13:34 Andreas Pakulat Note Added: 0025441
2011-02-15 13:39 Brad King Relationship added related to 0008189
2012-08-13 10:36 Brad King Status assigned => backlog
2012-08-13 10:36 Brad King Note Added: 0030475
2012-08-27 07:22 Stephen Kelly Note Added: 0030774
2012-08-27 07:23 Stephen Kelly Assigned To Brad King => Stephen Kelly
2012-08-27 07:23 Stephen Kelly Status backlog => assigned
2012-09-17 14:23 Stephen Kelly Target Version => CMake 2.8.10
2012-10-01 12:18 Stephen Kelly Note Added: 0031116
2012-10-01 12:18 Stephen Kelly Status assigned => resolved
2012-10-01 12:18 Stephen Kelly Fixed in Version => CMake 2.8.10
2012-10-01 12:18 Stephen Kelly Resolution open => fixed
2013-03-04 08:38 Robert Maynard Note Added: 0032461
2013-03-04 08:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team