Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,191
    • Issues 3,191
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 11
    • Merge Requests 11
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • CMake
  • CMakeCMake
  • Issues
  • #19916

Closed
Open
Opened Nov 03, 2019 by Bastien Schatt@bschattContributor

Missing attributes in CMAKE_CXX_KNOWN_FEATURES

Is there a specific reason why all standard attributes are not supported by CMake ? Currently there is only cxx_attribute_deprecated. You can fin the full list here.

In my case I'm interested in [[fallthrough]] because I want to use target_compile_features to let CMake add the correct flags automatically :

target_compile_features(MyTarget PRIVATE cxx_attribute_fallthrough)

This may be related to #16700 (closed) ([[noreturn]] attribute).

I can make the necessary changes to add some of the missing attributes and submit a PR if that's OK for you.

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: cmake/cmake#19916