Fixed macOS Compile Error
This commit is contained in:
1 parent
47828b6e85
commit
d7305649a0
1 file changed
+9
-1
+9
-1
@@ -140,7 +140,15 @@ public class Mono : ModuleRules
|
||||
}
|
||||
else if (Target.Platform == UnrealTargetPlatform.Mac)
|
||||
{
|
||||
var PlatformLibraryPath = Path.Combine(LibraryPath, $"macOS_{Target.Architecture}");
|
||||
var PlatformLibraryPath = Path.Combine(LibraryPath,
|
||||
#if UE_5_2_OR_LATER
|
||||
Target.Architecture.bIsX64
|
||||
#else
|
||||
Target.Architecture == "x86_64" || Target.Architecture == "x64"
|
||||
#endif
|
||||
|
||||
? "macOS_x86_64"
|
||||
: "macOS_arm64");
|
||||
|
||||
PublicAdditionalLibraries.Add(Path.Combine(PlatformLibraryPath,
|
||||
"libmonosgen-2.0.a"));
|
||||
|
||||
Reference in new issue
Block a user