def METHOD_NAME(self):
    if self.settings.os == "Windows":
        del self.options.fPIC
    else:
        del self.options.with_dx
    if self.settings.os != "Macos":
        del self.options.with_metal