From b37dd147bea23a3f75a3894cfcffb421c4ef8eb2 Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Thu, 1 Dec 2022 23:19:06 +0100 Subject: [PATCH] add support for msvc 2017 to the build.cs files --- .../SenseGloveConnectImpl.Build.cs | 10 ++++++++++ Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs b/Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs index 5dfafbde..fac360df 100644 --- a/Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs +++ b/Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs @@ -133,6 +133,11 @@ public class SenseGloveConnectImpl : ModuleRules case WindowsCompiler.VisualStudio2019: LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc142")); break; +#endif +#if UE_4_17_OR_LATER + case WindowsCompiler.VisualStudio2017: + LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc141")); + break; #endif default: Debug.Assert(false, "Unsupported compiler!"); @@ -222,6 +227,11 @@ public class SenseGloveConnectImpl : ModuleRules case WindowsCompiler.VisualStudio2019: LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc142")); break; +#endif +#if UE_4_17_OR_LATER + case WindowsCompiler.VisualStudio2017: + LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc141")); + break; #endif default: Debug.Assert(false, "Unsupported compiler!"); diff --git a/Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs b/Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs index da2e13cf..5fb815f8 100644 --- a/Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs +++ b/Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs @@ -132,6 +132,11 @@ public class SenseGloveCoreImpl : ModuleRules case WindowsCompiler.VisualStudio2019: LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc142")); break; +#endif +#if UE_4_17_OR_LATER + case WindowsCompiler.VisualStudio2017: + LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "msvc141")); + break; #endif default: Debug.Assert(false, "Unsupported compiler!");