prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  [request] celero/2.8.0
  ### Package Details
    * Package Name/Version: **celero/2.8.0**
    * Changelog: **https://github.com/DigitalInBlue/Celero/releases/tag/v2.8.0**
  
  The above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.
  
  
  </issue>
  <code>
  [start of recipes/celero/all/conanfile.py]
  1 import os
  2 
  3 from conans import ConanFile, CMake, tools
  4 from conans.errors import ConanInvalidConfiguration
  5 
  6 required_conan_version = ">=1.28.0"
  7 
  8 class CeleroConan(ConanFile):
  9     name = "celero"
  10     description = "C++ Benchmarking Library"
  11     license = "Apache-2.0"
  12     topics = ("conan", "celero", "benchmark", "benchmark-tests", "measurements", "microbenchmarks")
  13     homepage = "https://github.com/DigitalInBlue/Celero"
  14     url = "https://github.com/conan-io/conan-center-index"
  15     exports_sources = ["CMakeLists.txt", "patches/**"]
  16     generators = "cmake"
  17     settings = "os", "arch", "compiler", "build_type"
  18     options = {"shared": [True, False], "fPIC": [True, False]}
  19     default_options = {"shared": False, "fPIC": True}
  20 
  21     _cmake = None
  22 
  23     @property
  24     def _source_subfolder(self):
  25         return "source_subfolder"
  26 
  27     def config_options(self):
  28         if self.settings.os == "Windows":
  29             del self.options.fPIC
  30 
  31     @property
  32     def _compilers_minimum_version(self):
  33         return {
  34             "gcc": "6",
  35             "Visual Studio": "14",
  36             "clang": "3.4",
  37             "apple-clang": "5.1",
  38         }
  39 
  40     def configure(self):
  41         if self.options.shared:
  42             del self.options.fPIC
  43         if self.settings.compiler.cppstd:
  44             tools.check_min_cppstd(self, 14)
  45         minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)
  46         if not minimum_version:
  47             self.output.warn("celero requires C++14. Your compiler is unknown. Assuming it supports C++14.")
  48         elif tools.Version(self.settings.compiler.version) < minimum_version:
  49             raise ConanInvalidConfiguration("celero requires C++14, which your compiler does not support.")
  50 
  51     def source(self):
  52         tools.get(**self.conan_data["sources"][self.version])
  53         os.rename("Celero-" + self.version, self._source_subfolder)
  54 
  55     def _configure_cmake(self):
  56         if self._cmake:
  57             return self._cmake
  58         self._cmake = CMake(self)
  59         self._cmake.definitions["CELERO_COMPILE_DYNAMIC_LIBRARIES"] = self.options.shared
  60         self._cmake.definitions["CELERO_COMPILE_PIC"] = self.options.get_safe("fPIC", True)
  61         self._cmake.definitions["CELERO_ENABLE_EXPERIMENTS"] = False
  62         self._cmake.definitions["CELERO_ENABLE_FOLDERS"] = False
  63         self._cmake.definitions["CELERO_ENABLE_TESTS"] = False
  64         self._cmake.definitions["CELERO_TREAT_WARNINGS_AS_ERRORS"] = False
  65         self._cmake.configure()
  66         return self._cmake
  67 
  68     def build(self):
  69         for patch in self.conan_data.get("patches", {}).get(self.version, []):
  70             tools.patch(**patch)
  71         cmake = self._configure_cmake()
  72         cmake.build()
  73 
  74     def package(self):
  75         self.copy("license.txt", dst="licenses", src=self._source_subfolder)
  76         cmake = self._configure_cmake()
  77         cmake.install()
  78         tools.rmdir(os.path.join(self.package_folder, "share"))
  79 
  80     def package_info(self):
  81         # FIXME: official CMake target is exported without namespace
  82         self.cpp_info.filenames["cmake_find_package"] = "Celero"
  83         self.cpp_info.filenames["cmake_find_package_multi"] = "Celero"
  84         self.cpp_info.names["cmake_find_package"] = "celero"
  85         self.cpp_info.names["cmake_find_package_multi"] = "celero"
  86         self.cpp_info.libs = tools.collect_libs(self)
  87         if not self.options.shared:
  88             self.cpp_info.defines = ["CELERO_STATIC"]
  89         if self.settings.os == "Linux":
  90             self.cpp_info.system_libs = ["pthread"]
  91         elif self.settings.os == "Windows":
  92             self.cpp_info.system_libs = ["powrprof", "psapi"]
  93
  [end of recipes/celero/all/conanfile.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/recipes/celero/all/conanfile.py b/recipes/celero/all/conanfile.py
  --- a/recipes/celero/all/conanfile.py
  +++ b/recipes/celero/all/conanfile.py
  @@ -1,9 +1,9 @@
   import os
  -
  +import textwrap
   from conans import ConanFile, CMake, tools
   from conans.errors import ConanInvalidConfiguration
   
  -required_conan_version = ">=1.28.0"
  +required_conan_version = ">=1.33.0"
   
   class CeleroConan(ConanFile):
       name = "celero"
  @@ -49,8 +49,7 @@
               raise ConanInvalidConfiguration("celero requires C++14, which your compiler does not support.")
   
       def source(self):
  -        tools.get(**self.conan_data["sources"][self.version])
  -        os.rename("Celero-" + self.version, self._source_subfolder)
  +        tools.get(**self.conan_data["sources"][self.version], strip_root=True, destination=self._source_subfolder)
   
       def _configure_cmake(self):
           if self._cmake:
  @@ -76,17 +75,44 @@
           cmake = self._configure_cmake()
           cmake.install()
           tools.rmdir(os.path.join(self.package_folder, "share"))
  +        self._create_cmake_module_alias_targets(
  +            os.path.join(self.package_folder, self._module_file_rel_path),
  +            {"celero": "celero::celero"}
  +        )
  +
  +    @staticmethod
  +    def _create_cmake_module_alias_targets(module_file, targets):
  +        content = ""
  +        for alias, aliased in targets.items():
  +            content += textwrap.dedent("""\
  +                if(TARGET {aliased} AND NOT TARGET {alias})
  +                    add_library({alias} INTERFACE IMPORTED)
  +                    set_property(TARGET {alias} PROPERTY INTERFACE_LINK_LIBRARIES {aliased})
  +                endif()
  +            """.format(alias=alias, aliased=aliased))
  +        tools.save(module_file, content)
  +
  +    @property
  +    def _module_subfolder(self):
  +        return os.path.join("lib", "cmake")
  +
  +    @property
  +    def _module_file_rel_path(self):
  +        return os.path.join(self._module_subfolder,
  +                            "conan-official-{}-targets.cmake".format(self.name))
   
       def package_info(self):
  -        # FIXME: official CMake target is exported without namespace
           self.cpp_info.filenames["cmake_find_package"] = "Celero"
           self.cpp_info.filenames["cmake_find_package_multi"] = "Celero"
           self.cpp_info.names["cmake_find_package"] = "celero"
           self.cpp_info.names["cmake_find_package_multi"] = "celero"
           self.cpp_info.libs = tools.collect_libs(self)
  +        self.cpp_info.builddirs.append(self._module_subfolder)
  +        self.cpp_info.build_modules["cmake_find_package"] = [self._module_file_rel_path]
  +        self.cpp_info.build_modules["cmake_find_package_multi"] = [self._module_file_rel_path]
           if not self.options.shared:
               self.cpp_info.defines = ["CELERO_STATIC"]
  -        if self.settings.os == "Linux":
  +        if self.settings.os in ("FreeBSD", "Linux"):
               self.cpp_info.system_libs = ["pthread"]
           elif self.settings.os == "Windows":
               self.cpp_info.system_libs = ["powrprof", "psapi"]
  
verification_info: {"golden_diff": "diff --git a/recipes/celero/all/conanfile.py b/recipes/celero/all/conanfile.py\n--- a/recipes/celero/all/conanfile.py\n+++ b/recipes/celero/all/conanfile.py\n@@ -1,9 +1,9 @@\n import os\n-\n+import textwrap\n from conans import ConanFile, CMake, tools\n from conans.errors import ConanInvalidConfiguration\n \n-required_conan_version = \">=1.28.0\"\n+required_conan_version = \">=1.33.0\"\n \n class CeleroConan(ConanFile):\n     name = \"celero\"\n@@ -49,8 +49,7 @@\n             raise ConanInvalidConfiguration(\"celero requires C++14, which your compiler does not support.\")\n \n     def source(self):\n-        tools.get(**self.conan_data[\"sources\"][self.version])\n-        os.rename(\"Celero-\" + self.version, self._source_subfolder)\n+        tools.get(**self.conan_data[\"sources\"][self.version], strip_root=True, destination=self._source_subfolder)\n \n     def _configure_cmake(self):\n         if self._cmake:\n@@ -76,17 +75,44 @@\n         cmake = self._configure_cmake()\n         cmake.install()\n         tools.rmdir(os.path.join(self.package_folder, \"share\"))\n+        self._create_cmake_module_alias_targets(\n+            os.path.join(self.package_folder, self._module_file_rel_path),\n+            {\"celero\": \"celero::celero\"}\n+        )\n+\n+    @staticmethod\n+    def _create_cmake_module_alias_targets(module_file, targets):\n+        content = \"\"\n+        for alias, aliased in targets.items():\n+            content += textwrap.dedent(\"\"\"\\\n+                if(TARGET {aliased} AND NOT TARGET {alias})\n+                    add_library({alias} INTERFACE IMPORTED)\n+                    set_property(TARGET {alias} PROPERTY INTERFACE_LINK_LIBRARIES {aliased})\n+                endif()\n+            \"\"\".format(alias=alias, aliased=aliased))\n+        tools.save(module_file, content)\n+\n+    @property\n+    def _module_subfolder(self):\n+        return os.path.join(\"lib\", \"cmake\")\n+\n+    @property\n+    def _module_file_rel_path(self):\n+        return os.path.join(self._module_subfolder,\n+                            \"conan-official-{}-targets.cmake\".format(self.name))\n \n     def package_info(self):\n-        # FIXME: official CMake target is exported without namespace\n         self.cpp_info.filenames[\"cmake_find_package\"] = \"Celero\"\n         self.cpp_info.filenames[\"cmake_find_package_multi\"] = \"Celero\"\n         self.cpp_info.names[\"cmake_find_package\"] = \"celero\"\n         self.cpp_info.names[\"cmake_find_package_multi\"] = \"celero\"\n         self.cpp_info.libs = tools.collect_libs(self)\n+        self.cpp_info.builddirs.append(self._module_subfolder)\n+        self.cpp_info.build_modules[\"cmake_find_package\"] = [self._module_file_rel_path]\n+        self.cpp_info.build_modules[\"cmake_find_package_multi\"] = [self._module_file_rel_path]\n         if not self.options.shared:\n             self.cpp_info.defines = [\"CELERO_STATIC\"]\n-        if self.settings.os == \"Linux\":\n+        if self.settings.os in (\"FreeBSD\", \"Linux\"):\n             self.cpp_info.system_libs = [\"pthread\"]\n         elif self.settings.os == \"Windows\":\n             self.cpp_info.system_libs = [\"powrprof\", \"psapi\"]\n", "issue": "[request] celero/2.8.0\n### Package Details\r\n  * Package Name/Version: **celero/2.8.0**\r\n  * Changelog: **https://github.com/DigitalInBlue/Celero/releases/tag/v2.8.0**\r\n\r\nThe above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.\r\n\n", "before_files": [{"content": "import os\n\nfrom conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\n\nrequired_conan_version = \">=1.28.0\"\n\nclass CeleroConan(ConanFile):\n    name = \"celero\"\n    description = \"C++ Benchmarking Library\"\n    license = \"Apache-2.0\"\n    topics = (\"conan\", \"celero\", \"benchmark\", \"benchmark-tests\", \"measurements\", \"microbenchmarks\")\n    homepage = \"https://github.com/DigitalInBlue/Celero\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    exports_sources = [\"CMakeLists.txt\", \"patches/**\"]\n    generators = \"cmake\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\"shared\": [True, False], \"fPIC\": [True, False]}\n    default_options = {\"shared\": False, \"fPIC\": True}\n\n    _cmake = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    def config_options(self):\n        if self.settings.os == \"Windows\":\n            del self.options.fPIC\n\n    @property\n    def _compilers_minimum_version(self):\n        return {\n            \"gcc\": \"6\",\n            \"Visual Studio\": \"14\",\n            \"clang\": \"3.4\",\n            \"apple-clang\": \"5.1\",\n        }\n\n    def configure(self):\n        if self.options.shared:\n            del self.options.fPIC\n        if self.settings.compiler.cppstd:\n            tools.check_min_cppstd(self, 14)\n        minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)\n        if not minimum_version:\n            self.output.warn(\"celero requires C++14. Your compiler is unknown. Assuming it supports C++14.\")\n        elif tools.Version(self.settings.compiler.version) < minimum_version:\n            raise ConanInvalidConfiguration(\"celero requires C++14, which your compiler does not support.\")\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        os.rename(\"Celero-\" + self.version, self._source_subfolder)\n\n    def _configure_cmake(self):\n        if self._cmake:\n            return self._cmake\n        self._cmake = CMake(self)\n        self._cmake.definitions[\"CELERO_COMPILE_DYNAMIC_LIBRARIES\"] = self.options.shared\n        self._cmake.definitions[\"CELERO_COMPILE_PIC\"] = self.options.get_safe(\"fPIC\", True)\n        self._cmake.definitions[\"CELERO_ENABLE_EXPERIMENTS\"] = False\n        self._cmake.definitions[\"CELERO_ENABLE_FOLDERS\"] = False\n        self._cmake.definitions[\"CELERO_ENABLE_TESTS\"] = False\n        self._cmake.definitions[\"CELERO_TREAT_WARNINGS_AS_ERRORS\"] = False\n        self._cmake.configure()\n        return self._cmake\n\n    def build(self):\n        for patch in self.conan_data.get(\"patches\", {}).get(self.version, []):\n            tools.patch(**patch)\n        cmake = self._configure_cmake()\n        cmake.build()\n\n    def package(self):\n        self.copy(\"license.txt\", dst=\"licenses\", src=self._source_subfolder)\n        cmake = self._configure_cmake()\n        cmake.install()\n        tools.rmdir(os.path.join(self.package_folder, \"share\"))\n\n    def package_info(self):\n        # FIXME: official CMake target is exported without namespace\n        self.cpp_info.filenames[\"cmake_find_package\"] = \"Celero\"\n        self.cpp_info.filenames[\"cmake_find_package_multi\"] = \"Celero\"\n        self.cpp_info.names[\"cmake_find_package\"] = \"celero\"\n        self.cpp_info.names[\"cmake_find_package_multi\"] = \"celero\"\n        self.cpp_info.libs = tools.collect_libs(self)\n        if not self.options.shared:\n            self.cpp_info.defines = [\"CELERO_STATIC\"]\n        if self.settings.os == \"Linux\":\n            self.cpp_info.system_libs = [\"pthread\"]\n        elif self.settings.os == \"Windows\":\n            self.cpp_info.system_libs = [\"powrprof\", \"psapi\"]\n", "path": "recipes/celero/all/conanfile.py"}]}