Skip to content

Commit

Permalink
Fix the ReadOnlyTargetRules warning in Build.cs.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuwch committed Oct 16, 2017
1 parent 80e7d97 commit e00364f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Source/UnrealCV/UnrealCV.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ namespace UnrealBuildTool.Rules
{
public class UnrealCV: ModuleRules
{
public UnrealCV(TargetInfo Target)
#if WITH_FORWARDED_MODULE_RULES_CTOR
public UnrealCV(ReadOnlyTargetRules Target) : base(Target)
// 4.16 or better
{
bEnforceIWYU = false;
#else
public UnrealCV(TargetInfo Target) //4.15 or lower
{
#endif
// This trick is from https://answers.unrealengine.com/questions/258689/how-to-include-private-header-files-of-other-modul.html
string EnginePath = Path.GetFullPath(BuildConfiguration.RelativeEnginePath);

Expand Down

0 comments on commit e00364f

Please sign in to comment.