The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15332 
====================================================================== 
Reported By:                Ezekiel Warren
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15332
Category:                   CMake
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-01-01 20:45 EST
Last Modified:              2015-01-01 20:45 EST
====================================================================== 
Summary:                    Feature request for giving CMake the ability to
define C++11 generic attributes.
Description: 
The proposed feature would allow developers to define generic attributes so that
a CMake script may be ran at build time when they are encountered.

A possible syntax could be similar to functions. Additionally with variables
defined within function-like scope that hold information on the attribute.  

attribute(<name> [arg1 [arg2 [arg3 ...]]])
  
  ${ATTRIBUTE_TYPE} # could be "class", "function", "namespace", etc. 
  
endattribute(<name>)

Compilers such as gcc give the ability to write plugins that could be used to
implement this feature. Other compilers may have other ways to accomplish this,
but if a compiler doesn't there could be a fail safe that would require CMake to
parse the code itself (not ideal.)

I'm not sure if such a feature falls in CMake's scope of responsibilities, but I
thought I'd get some feedback.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-01-01 20:45 Ezekiel Warren 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