fix ue >= 5.0 ubt errors

This commit is contained in:
Mamadou Babaei
2022-12-02 12:38:30 +01:00
parent ce855aacef
commit b549ce660c
2 changed files with 5 additions and 3 deletions
@@ -134,7 +134,7 @@ public class SenseGloveConnectImpl : ModuleRules
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc142")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc142"));
break; break;
#endif #endif
#if UE_4_17_OR_LATER #if ! UE_5_0_OR_LATER && UE_4_17_OR_LATER
case WindowsCompiler.VisualStudio2017: case WindowsCompiler.VisualStudio2017:
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc141")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc141"));
break; break;
@@ -143,6 +143,7 @@ public class SenseGloveConnectImpl : ModuleRules
Debug.Assert(false, "Unsupported compiler!"); Debug.Assert(false, "Unsupported compiler!");
break; break;
} }
LibraryName = string.Format("{0}.lib", LibraryName); LibraryName = string.Format("{0}.lib", LibraryName);
} }
else else
@@ -228,7 +229,7 @@ public class SenseGloveConnectImpl : ModuleRules
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc142")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc142"));
break; break;
#endif #endif
#if UE_4_17_OR_LATER #if ! UE_5_0_OR_LATER && UE_4_17_OR_LATER
case WindowsCompiler.VisualStudio2017: case WindowsCompiler.VisualStudio2017:
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc141")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc141"));
break; break;
@@ -237,6 +238,7 @@ public class SenseGloveConnectImpl : ModuleRules
Debug.Assert(false, "Unsupported compiler!"); Debug.Assert(false, "Unsupported compiler!");
break; break;
} }
LibraryName = string.Format("{0}.lib", LibraryName); LibraryName = string.Format("{0}.lib", LibraryName);
} }
else else
@@ -133,7 +133,7 @@ public class SenseGloveCoreImpl : ModuleRules
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc142")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc142"));
break; break;
#endif #endif
#if UE_4_17_OR_LATER #if ! UE_5_0_OR_LATER && UE_4_17_OR_LATER
case WindowsCompiler.VisualStudio2017: case WindowsCompiler.VisualStudio2017:
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc141")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc141"));
break; break;