This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //See TargetRules.cs how this works | |
| //Rider (and possibly VS) are not sure if this is a non null reference | |
| string ProjDir = DirectoryReference.FromFile(Target.ProjectFile)?.ToString(); | |
| //Thank you to IntelOIDN.build.cs for providing an example of how to do this | |
| if (Target.Platform.IsInGroup(UnrealPlatformGroup.Windows) && | |
| Target.WindowsPlatform.Architecture == WindowsArchitecture.x64) | |
| { | |
| string WinIncludeDir = Path.Combine(ProjDir, "Source/Resources/Windows/include/"); | |
| PublicSystemIncludePaths.Add(WinIncludeDir); |