Monkey patch for Unreal Engine 4.25+

This commit is contained in:
Brandon Thomas
2021-02-28 01:32:07 -05:00
parent 1828ce0f9e
commit c0f9acb9aa
+13 -1
View File
@@ -25,7 +25,19 @@ public class ZeroMQ : ModuleRules
// tell library that it is statically linked
PublicDefinitions.Add("ZMQ_STATIC");
// NB(bt): This isn't compiling for Unreal Engine 4.25:
// Error CS0151
// A switch expression or case label must be a bool, char, string, integral, enum, or corresponding nullable type
// c:\Users\echel\OneDrive\Documents\Unreal Projects\AzureKinect\Plugins\UnrealZeroMQ\Source\ZeroMQ\ZeroMQ.Build.cs 29
//
// I'll hardcode the results for Windows x64 for now.
// Sorry for being a bad citizen to other platforms, especially Linux. :(
string staticLibrary = Path.Combine(ZeroMQRootPath, "Windows", "x64", "libzmq-v141-mt-s-4_3_2.lib");
/*
string staticLibrary = "";
switch (Target.Platform)
{
case UnrealTargetPlatform.Win64:
@@ -45,7 +57,7 @@ public class ZeroMQ : ModuleRules
Console.WriteLine("unsupported target platform: %s", Target.Platform);
Debug.Assert(false);
break;
}
}*/
bEnableExceptions = true;