View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013665CMakeCMakepublic2012-11-08 17:012014-02-10 10:44
Reportermwoehlke 
Assigned ToStephen Kelly 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionno change required 
Platformx86_64OSFedoraOS Version17
Product VersionCMake 2.8.10 
Target VersionFixed in Version 
Summary0013665: include_directories(SYSTEM) should promote
DescriptionIn some instances (possibly related to CMake version), include_directories(SYSTEM ${foo}) has no effect.
Steps To Reproduceinclude_directories(${foo})
include_directories(SYSTEM ${foo})
Additional InformationIt appears that CMake ignores an include_directories(SYSTEM) for include directories that already exist. This is more likely in large projects where e.g. a top-level CMake file (or even a UseFoo.cmake) includes directories without SYSTEM, and a leaf CMakeLists.txt does an include_directories(SYSTEM) of the same directories.

I think it would be better following the expected behavior of include_directories if, rather than ignore the directive if the directory is already in include_directories, to 'promote' it to SYSTEM (probably without changing the order).
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0031506)
mwoehlke (developer)
2012-11-08 17:23

Never mind, problem seems to have been caused by misspelled INCLUDE_DIR variable in second include_directories. (Apparently I can't even close my own bugs?)
(0035077)
Robert Maynard (manager)
2014-02-10 10:44

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

 Issue History
Date Modified Username Field Change
2012-11-08 17:01 mwoehlke New Issue
2012-11-08 17:23 mwoehlke Note Added: 0031506
2013-08-25 15:59 Stephen Kelly Status new => resolved
2013-08-25 15:59 Stephen Kelly Resolution open => no change required
2013-08-25 15:59 Stephen Kelly Assigned To => Stephen Kelly
2014-02-10 10:44 Robert Maynard Note Added: 0035077
2014-02-10 10:44 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team