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.
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.