From b01fa91f57065c6bea56c9abf1ee91988fbf4084 Mon Sep 17 00:00:00 2001
From: Patrick Nossol <patrick.nossol@vr.rwth-aachen.de>
Date: Wed, 8 Mar 2023 13:43:15 +0100
Subject: [PATCH] try looking if module conflicts with non editor builds

---
 Source/MoCapPlugin/MoCapPlugin.Build.cs | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Source/MoCapPlugin/MoCapPlugin.Build.cs b/Source/MoCapPlugin/MoCapPlugin.Build.cs
index 0a03bd6..b8e5603 100644
--- a/Source/MoCapPlugin/MoCapPlugin.Build.cs
+++ b/Source/MoCapPlugin/MoCapPlugin.Build.cs
@@ -19,7 +19,7 @@ public class MoCapPlugin : ModuleRules
 			{
 				"Core",
 				"UMG",
-				"NDisplayLaunchButton",
+				//"NDisplayLaunchButton",
 				"RWTHVRToolkit",
 				"SteamVR",
 				"SteamVRInputDevice",
@@ -47,8 +47,13 @@ public class MoCapPlugin : ModuleRules
 			}
 			);
 
+        if (Target.Type == TargetRules.TargetType.Editor)
+        {
+            PrivateDependencyModuleNames.AddRange(new string[] { "NDisplayLaunchButton" });
+        }
 
-		DynamicallyLoadedModuleNames.AddRange(
+
+        DynamicallyLoadedModuleNames.AddRange(
 			new string[]
 			{
 				// ... add any modules that your module loads dynamically here ...
-- 
GitLab