How to ignore compiler errors using the build.cs file? (like cmake add_definitions("/wd4582"))

Pretty much the title. I am using an external library and cannot change it. I get the error about the constructor not being implicitly called (4582) and I need to ignore it. I can do this in cmake for some libraries that I build but couldn’t find how to add something similar in the build.cs file.

I tried some permutations of the PublicDefinitions.Add for the build.cs with no luck. I can use that to add definitions for preprocessor directives but I’m guessing modifying the errors/warnings works differently.

No I cannot use the #pragma warning (disable: ) before the header include.

1 Like