Skip to content

Commit

Permalink
Fixed UBT warning in UE 4.21. From 4.21 onward modules must specify a…
Browse files Browse the repository at this point in the history
…n explicit precompiled header in build script file.
  • Loading branch information
segross committed Feb 5, 2019
1 parent ffe532f commit eba312e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Status
------
ImGui version: 1.65

Supported engine version: 4.20.2*
Supported engine version: 4.21*

\* *Plugin has been tested and if necessary updated to compile and work with this engine version. As long as possible I will try to maintain backward compatibility of existing features and possibly but not necessarily when adding new features. Right now it should be at least backward compatible with the engine version 4.15.*

Expand Down
3 changes: 3 additions & 0 deletions Source/ImGui/ImGui.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public ImGui(TargetInfo Target)
// Enable runtime loader, if you want this module to be automatically loaded in runtime builds (monolithic).
bool bEnableRuntimeLoader = true;

#if UE_4_21_OR_LATER
PrivatePCHHeaderFile = "Private/ImGuiPrivatePCH.h";
#endif

PublicIncludePaths.AddRange(
new string[] {
Expand Down

0 comments on commit eba312e

Please sign in to comment.