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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to