C++ Transition Guide for 5.4

bStrictConformanceMode

“[ProjectName] modifies the values of properties: [ bStrictConformanceMode ]. This is not allowed, as [ProjectName] has build products in common with UnrealEditor.”


Original

using UnrealBuildTool;
using System.Collections.Generic;

public class PMeleeWeaponEditorTarget : TargetRules
{
	public PMeleeWeaponEditorTarget(TargetInfo Target) : base(Target)
	{
		        Type = TargetType.Editor;
                ExtraModuleNames.Add("PMeleeWeapon");
    }
}

Solution ~~> bOverrideBuildEnvironment = true

using UnrealBuildTool;
using System.Collections.Generic;

public class PMeleeWeaponEditorTarget : TargetRules
{
	public PMeleeWeaponEditorTarget(TargetInfo Target) : base(Target)
	{
                bOverrideBuildEnvironment = true;
		         Type = TargetType.Editor;
                ExtraModuleNames.Add("PMeleeWeapon");
    }
}

:heart:

Rama

7 Likes