The fix from ue5-main upstream is to add
#include "RequiredProgramMainCPPInclude.h"
IMPLEMENT_APPLICATION(CmdLink, "CmdLink")
before the enum EErrorMessage declaration and to add "Projects"
to the PrivateDependencyModuleNames
.
It can already be done in 5.4.2 manually.