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) (
I can make the necessary changes to add some of the missing attributes and submit a PR if that's OK for you.