Skip to content

Commit 7bfcc87

Browse files
author
Roberto De Ioris
committed
more robust build system
1 parent 63dcf3c commit 7bfcc87

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Source/UnrealEnginePython/UnrealEnginePython.Build.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,21 @@ public UnrealEnginePython(TargetInfo Target)
126126
"MovieSceneCapture",
127127
"Landscape",
128128
"Foliage",
129-
#if WITH_FORWARDED_MODULE_RULES_CTOR
130-
"ApplicationCore"
131-
#endif
132129
// ... add private dependencies that you statically link with here ...
133130
}
134131
);
135132

133+
#if WITH_FORWARDED_MODULE_RULES_CTOR
134+
BuildVersion Version;
135+
if (BuildVersion.TryRead(out Version))
136+
{
137+
if (Version.MinorVersion >= 18)
138+
{
139+
PrivateDependencyModuleNames.Add("ApplicationCore");
140+
}
141+
}
142+
#endif
143+
136144

137145
DynamicallyLoadedModuleNames.AddRange(
138146
new string[]

0 commit comments

Comments
 (0)