Is there a way to set {$SCOPEDENUMS ON} globally for the whole project?

compiler-errors, delphi, delphi-xe6, enums

Solution

There is no compiler parameter, and thus no project option, to control this directive. Which means that you have to set it locally in each unit.

Problem

I would like to enforce ``` {$SCOPEDENUMS ON} ``` on all of the units within a project. Currently I add this to every unit immediately after the unit declaration: ``` unit unt_WotcSearch; {$SCOPEDENUMS ON} ... ``` Is there a way I can set this globally (for example in the *.dpr file or project settings) so would not need to add {$SCOPEDENUMS ON} to hundreds of units?

Original source