MantisBT - CMake
View Issue Details
0015332CMakeCMakepublic2015-01-01 20:452016-06-10 14:31
Ezekiel Warren 
Kitware Robot 
normalfeatureN/A
closedmoved 
CMake 3.1 
 
0015332: Feature request for giving CMake the ability to define C++11 generic attributes.
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.
c++, c++11, generic attributes
Issue History
2015-01-01 20:45Ezekiel WarrenNew Issue
2015-01-01 20:46Ezekiel WarrenTag Attached: c++
2015-01-01 20:46Ezekiel WarrenTag Attached: c++11
2015-01-01 20:46Ezekiel WarrenTag Attached: generic attributes
2016-06-10 14:29Kitware RobotNote Added: 0042695
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
(0042695)
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.