[cmake-developers] [CMake 0015491]: First-class support for GNU -iquote, -I- and -I=opt/foo include directory specifiers
Mantis Bug Tracker
mantis at public.kitware.com
Wed Apr 1 16:44:54 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15491
======================================================================
Reported By: Stephen Kelly
Assigned To:
======================================================================
Project: CMake
Issue ID: 15491
Category: (No Category)
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-04-01 22:44 CEST
Last Modified: 2015-04-01 22:44 CEST
======================================================================
Summary: First-class support for GNU -iquote, -I- and
-I=opt/foo include directory specifiers
Description:
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.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-04-01 22:44 Stephen Kelly New Issue
======================================================================
More information about the cmake-developers
mailing list