[X] This issue is not a duplicate. Before opening a new issue, please search existing issues.
[X] This issue is not a question, feature request, or anything other than a bug report directly related to this project.
Description
If project has BuildSettingsVersion.V4 enabled, it would not build.
The actual problem is that this option enables TargetRules.CppStandard = CppStandard.Default, which has been changed from Cpp17 to Cpp20.
Steps to Reproduce
Add DefaultBuildSetting = BuildSettingsVersion.V4 into ZEDSamplesEditor.Target.cs, so it would look like this:
public class ZEDSamplesEditorTarget : TargetRules
{
public ZEDSamplesEditorTarget(TargetInfo Target) : base(Target)
{
bUseAdaptiveUnityBuild = false;
DefaultBuildSettings = BuildSettingsVersion.V4;
//CppStandard = CppStandardVersion.Cpp20; //Has the same effect
Type = TargetType.Editor;
ExtraModuleNames.AddRange( new string[] { "ZEDSamples" } );
}
}
Preliminary Checks
Description
If project has BuildSettingsVersion.V4 enabled, it would not build. The actual problem is that this option enables
TargetRules.CppStandard = CppStandard.Default
, which has been changed from Cpp17 to Cpp20.Steps to Reproduce
Add
DefaultBuildSetting = BuildSettingsVersion.V4
into ZEDSamplesEditor.Target.cs, so it would look like this:Expected Result
Successfull build
Actual Result
Build failed
ZED Camera model
ZED
Environment
Anything else?
No response