Use new version-controlled enumerator deprecation warning macros
Usage example for extra-cmake-modules!115 (merged)
IMHO this makes the code not really nice to read, not happy at all, but then this is not really different from using the original deprecated attribute with text argument, just that our macro name is a bit longer. If only enumerator tags would be placed <here> A = value
instead of A <here> = value
...