You could try it by passing the macro via .c or .h file. UM1718, section 6.4 describes how to place these files via category [Groups] in certain project directories.
Good luck!
If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.