This is very specific, but I want to use VA_OPT to do some custom MACRO logic, this part works flawlessly … as long as you have the compiler flag “/Zc:preprocessor” in the Additional Options part of the project properties.
Here:
The issue is that whenever the Visual Studio solution gets re-loaded (for instance when sharing the project), currently we need to manually add that compiler flag in the options to get the MACRO to work properly and compile.
Does anyone know how I can get Unreal to automatically add this compiler flag when building, possible in the *.Build.cs or one of the *.Target.cs files?