UE5 - BuildTool: How can I set Target.WindowsPlatform.bUpdatedCPPMacro property?

188 Views Asked by At

I'm trying to use a third party library inside ue5. For it to compile, I need to add the "Zc__cplusplus" option to the compiler. While going through a file named "VCToolChain.cs" I found out that, the needed option will be included if the variable "Target.WindowsPlatform.bUpdatedCPPMacro" is set to true.

So my question is where and when is this variable set? Can I set it in some non hacky way?

1

There are 1 best solutions below

0
Cleroth On

In [project].Target.cs, add WindowsPlatform.bUpdatedCPPMacro = true;