def METHOD_NAME(self):
    if self._cmake:
        return self._cmake
    self._cmake = CMake(self)
    self._cmake.definitions["DILIGENT_INSTALL_TOOLS"] = False
    self._cmake.definitions["DILIGENT_BUILD_SAMPLES"] = False
    self._cmake.definitions["DILIGENT_NO_FORMAT_VALIDATION"] = True
    self._cmake.definitions["DILIGENT_BUILD_TESTS"] = False
    self._cmake.definitions["DILIGENT_BUILD_TOOLS_TESTS"] = False
    self._cmake.definitions["DILIGENT_BUILD_TOOLS_INCLUDE_TEST"] = False
    self._cmake.definitions["DILIGENT_NO_RENDER_STATE_PACKAGER"] = not self.options.with_render_state_packager
    self._cmake.definitions["ARCHIVER_SUPPORTED"] = not self.options.with_archiver
    if self.version != "cci.20211009" and \
    (self.version.startswith("api") and self.version >= "api.252005") or \
    (self.version > "2.5.2"):
        self._cmake.definitions["GL_SUPPORTED"] = True
        self._cmake.definitions["GLES_SUPPORTED"] = True
        self._cmake.definitions["VULKAN_SUPPORTED"] = True
        self._cmake.definitions["METAL_SUPPORTED"] = True
    self._cmake.definitions[self._diligent_platform] = True
    self._cmake.configure(build_folder=self._build_subfolder)
    return self._cmake