MantisBT - CMake
View Issue Details
0015491CMake(No Category)public2015-04-01 16:442016-06-10 14:31
Stephen Kelly 
Kitware Robot 
normalminorhave not tried
closedmoved 
 
 
0015491: First-class support for GNU -iquote, -I- and -I=opt/foo include directory specifiers

The -iquote and -I- options relate to how the compiler treats "" versus <> includes.

 https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html [^]

All -iquote options are processed before any -I options. A new target property and directory property and command interface could be added for it.

The -I- is a divider. CMake could support it by accepting a placeholder of a magic name in the INCLUDE_DIRECTORIES property. This would need to be allowed only in non-transitive uses.

https://gcc.gnu.org/onlinedocs/cpp/Invocation.html#Invocation [^]

 "If dir begins with =, then the = will be replaced by the sysroot prefix; see --sysroot and -isysroot."

It is possible that CMake could learn to use that. I'm not certain whether that would be useful though, as I think CMake already adds the sysroot as a prefix during generation.

I have not checked other compilers for equivalent features.
No tags attached.
has duplicate 0015753closed  CMake cannot detect changes in nested header files when using '-iquote' 
Issue History
2015-04-01 16:44Stephen KellyNew Issue
2015-09-21 09:11Brad KingRelationship addedhas duplicate 0015753
2016-06-10 14:29Kitware RobotNote Added: 0042750
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042750)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.