[cmake-developers] [CMake 0015332]: Feature request for giving CMake the ability to define C++11 generic attributes.
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jan 1 20:45:17 EST 2015
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
======================================================================
More information about the cmake-developers
mailing list