def METHOD_NAME(self):
    tc = CMakeToolchain(self)
    tc.variables["FOONATHAN_MEMORY_BUILD_EXAMPLES"] = False
    tc.variables["FOONATHAN_MEMORY_BUILD_TESTS"] = False
    tc.variables["FOONATHAN_MEMORY_BUILD_TOOLS"] = self.options.with_tools
    tc.variables["FOONATHAN_MEMORY_CHECK_ALLOCATION_SIZE"] = self.options.with_sizecheck
    tc.METHOD_NAME()