Set Pre-processor definitions in build system

Hi,
I am packaging a game in the shipment mode and I noticed that my command line args are not being read because of UGameInstance::StartGameInstance()
I was trying to add UE_ALLOW_MAP_OVERRIDE_IN_SHIPPING to .Target.cs but it seems it does not work. I did the following:

public ProjectName(TargetInfo Target) : base(Target)
	{
		Type = TargetType.Game;

		ExtraModuleNames.AddRange( new string[] { "ProjectName" } );
		ProjectDefinitions.Add( "UE_ALLOW_MAP_OVERRIDE_IN_SHIPPING=1" );
	}

Am I missing something?

Hello,

For me it worked by adding it to .Target.cs but using GlobalDefinitions.Add(“UE_ALLOW_MAP_OVERRIDE_IN_SHIPPING=1”);