UE5源码版本在多个工程来回切换时重复编译引擎问题

细看UBT日志,已经给出了提示

11>Parsing headers for ActionRPG
11>  Running Internal UnrealHeaderTool D:\UEProject\ActionRPG\ActionRPG.uproject D:\UEProject\ActionRPG\Intermediate\Build\Win64\ActionRPG\Development\ActionRPG.uhtmanifest -WarningsAsErrors
11>Total of 7525 written
11>Reflection code generated for ActionRPG in 1.9504653 seconds
11>Building ActionRPG...
11>Using Visual Studio 2022 14.39.33519 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519) and Windows 10.0.22000.0 SDK (C:\Program Files (x86)\Windows Kits\10).
11>[Upgrade]
11>[Upgrade] Using backward-compatible build settings. The latest version of UE sets the following values by default, which may require code changes:
11>[Upgrade]     bLegacyParentIncludePaths = false               => Omits module parent folders from include paths to reduce compiler command line length. (Previously: true).
11>[Upgrade]     CppStandard = CppStandardVersion.Default        => Updates C++ Standard to C++20 (Previously: CppStandardVersion.Cpp17).
11>[Upgrade]     WindowsPlatform.bStrictConformanceMode = true   => Updates MSVC strict conformance mode to true (Previously: false).
11>[Upgrade] Suppress this message by setting 'DefaultBuildSettings = BuildSettingsVersion.V4;' in ActionRPG.Target.cs, and explicitly overriding settings that differ from the new defaults.
11>[Upgrade]
11>[Upgrade]
11>[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
11>[Upgrade]     IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
11>[Upgrade] Suppress this message by setting 'IncludeOrderVersion = EngineIncludeOrderVersion.Latest;' in ActionRPG.Target.cs.
11>[Upgrade] Alternatively you can set this to 'EngineIncludeOrderVersion.Latest' to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
11>[Upgrade]
11>Determining max actions to execute in parallel (12 physical cores, 20 logical cores)

在模块build.cs指定编译配置版本即可(应该有多个,编辑器,客户端,服务器)

DefaultBuildSettings = BuildSettingsVersion.V4;
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
posted @ 2024-02-24 22:10  剑过不留痕残月分断魂  阅读(163)  评论(1编辑  收藏  举报