def METHOD_NAME(self):
    for patch in self.conan_data.get("patches", {}).get(self.version, []):
        tools.patch(**patch)
    tools.replace_in_file(os.path.join(self._source_subfolder, "CMakeLists.txt"),
                          'set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/" ${CMAKE_MODULE_PATH})',
                          "")
    cmakelists = [os.path.join("src", "Magnum", "Ui", "CMakeLists.txt"),
                  os.path.join("src", "player","CMakeLists.txt")]
    app_name = "{}Application".format("XEgl" if self.options.application == "xegl" else str(self.options.application).capitalize())
    for cmakelist in cmakelists:
        tools.replace_in_file(os.path.join(self._source_subfolder, cmakelist),
                              "Magnum::Application",
                              "Magnum::{}".format(app_name))