View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015332CMakeCMakepublic2015-01-01 20:452016-06-10 14:31
ReporterEzekiel Warren 
Assigned ToKitware Robot 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 3.1 
Target VersionFixed in Version 
Summary0015332: Feature request for giving CMake the ability to define C++11 generic attributes.
DescriptionThe 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.
Tagsc++, c++11, generic attributes
Attached Files

 Relationships

  Notes
(0042695)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2015-01-01 20:45 Ezekiel Warren New Issue
2015-01-01 20:46 Ezekiel Warren Tag Attached: c++
2015-01-01 20:46 Ezekiel Warren Tag Attached: c++11
2015-01-01 20:46 Ezekiel Warren Tag Attached: generic attributes
2016-06-10 14:29 Kitware Robot Note Added: 0042695
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team