def METHOD_NAME(self):
    if self.settings.os == "Windows":
        del self.options.fPIC
        del self.options.with_nnapi
        del self.options.with_mmap
    if self.settings.os == "Macos":
        del self.options.with_nnapi