MantisBT - CMake |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013665 | CMake | CMake | public | 2012-11-08 17:01 | 2014-02-10 10:44 |
|
| Reporter | mwoehlke | |
| Assigned To | Stephen Kelly | |
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | no change required | |
| Platform | x86_64 | OS | Fedora | OS Version | 17 |
| Product Version | CMake 2.8.10 | |
| Target Version | | Fixed in Version | | |
|
| Summary | 0013665: include_directories(SYSTEM) should promote |
| Description | In some instances (possibly related to CMake version), include_directories(SYSTEM ${foo}) has no effect. |
| Steps To Reproduce | include_directories(${foo})
include_directories(SYSTEM ${foo}) |
| Additional Information | It 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). |
| Tags | No tags attached. |
| Relationships | |
| Attached Files | |
|
| 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 |