Dear ROOT experts,
I’d like to organize a project with multiple sub-projects, each with their own LinkDef.h files and corresponding ROOT_GENERATE_DICTIONARY() calls in CmakeLists.txt files.
The problem is that the “standard preamble” as recommended below:
// Standard preamble: turn off creation of dictionaries for "everything":
// we then turn it on only for the types we are interested in.
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
included and compiled in packages A → B, then dictionary will not be generated for any of my classes in A due to the preamble of B. I cannot think of a general way to solve this, only to simply enforce the master order in advance and comment them out in all subsequent projects. This would leave project B not adhering to the recommendation if e.g. it is being compiled standalone elsewhere.
Please forgive me if I am missing some basic scheme to resolve this, but any pointers to such would be greatly appreciated!
Best,
Tae