in a standalone CMake project with ROOT integration, I get several of this type of compilation warnings from “metacling” for some derived classes that I create:
Warning in <MyClass>: The data members of MyClass will not be stored, because it inherits from TObject but does not have its own ClassDef.
I believe it happens when calling ROOT_GENERATE_DICTIONARY(…) CMake macro.
I would prefer not to define a ClassDef for these classes. Is there an empty ‘ClassDef’ macro or compilation flag / verbosity level to disable this warning explicitly, so that I do not get the command line filled with it, which makes it harder to find the real warnings?
Thanks in advance for the help!
ROOT Version: 6.23/01
Platform: Ubuntu 18
Compiler: gcc, cmake