From 97a8be533839e70e79631bf7421fd0ece64ecb87 Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Fri, 2 Dec 2022 11:01:57 +0100 Subject: [PATCH] fix ue >= 5.0 ubt errors --- Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs | 6 ++++-- Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs b/Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs index fac360df..2b2a1d6e 100644 --- a/Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs +++ b/Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs @@ -134,7 +134,7 @@ public class SenseGloveConnectImpl : ModuleRules LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc142")); break; #endif -#if UE_4_17_OR_LATER +#if ! UE_5_0_OR_LATER && UE_4_17_OR_LATER case WindowsCompiler.VisualStudio2017: LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc141")); break; @@ -143,6 +143,7 @@ public class SenseGloveConnectImpl : ModuleRules Debug.Assert(false, "Unsupported compiler!"); break; } + LibraryName = string.Format("{0}.lib", LibraryName); } else @@ -228,7 +229,7 @@ public class SenseGloveConnectImpl : ModuleRules LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc142")); break; #endif -#if UE_4_17_OR_LATER +#if ! UE_5_0_OR_LATER && UE_4_17_OR_LATER case WindowsCompiler.VisualStudio2017: LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc141")); break; @@ -237,6 +238,7 @@ public class SenseGloveConnectImpl : ModuleRules Debug.Assert(false, "Unsupported compiler!"); break; } + LibraryName = string.Format("{0}.lib", LibraryName); } else diff --git a/Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs b/Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs index 5fb815f8..95872f36 100644 --- a/Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs +++ b/Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs @@ -133,7 +133,7 @@ public class SenseGloveCoreImpl : ModuleRules LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc142")); break; #endif -#if UE_4_17_OR_LATER +#if ! UE_5_0_OR_LATER && UE_4_17_OR_LATER case WindowsCompiler.VisualStudio2017: LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc141")); break;