prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [package] xerces-c/3.2.3: xmlch-type should be a package option
  <!-- 
    Please don't forget to update the issue title.
    Include all applicable information to help us reproduce your problem.
  -->
  
  ### Package and Environment Details (include every applicable attribute)
    * Package Name/Version: **xerces-c/3.2.3**
    * Operating System+version: **Windows 10**
    * Compiler+version: **Visual Studio 2019**
    * Conan version: **conan 1.37.0**
    * Python version: **Python 3.9**
  
  
  ### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)
  ```
  [settings]
  os=Windows
  os_build=Windows
  arch=x86_64
  arch_build=x86_64
  compiler=Visual Studio
  compiler.version=16
  build_type=Release
  [options]
  [build_requires]
  *: cmake/3.19.6
  [env]
  ```
  
  According to the library [cmake-files](https://github.com/apache/xerces-c/blob/v3.2.3/cmake/XercesXMLCh.cmake) `xerces-c` supports `uint16_t`, `char16_t` and `wchar_t`, while the current [recipe supports only `uint16_t`](https://github.com/conan-io/conan-center-index/blob/c4f06bca2cf69dd5429f4867bced49872e4300a2/recipes/xerces-c/all/conanfile.py#L54).
  
  The library, I am working on, uses `char16_t` for the `xmlch-type` and the build fails because the `xerces-c` recipe provides only `uint16_t` for `xmlch-type`:
  `error C2440: '<function-style-cast>': cannot convert from 'const XMLCh *' to 'std::u16string'`
  
  We need `xmlch-type` as an option so that the user could choose any of the types supported by `xerces-c`.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `recipes/xerces-c/all/conanfile.py`
  Content:
  ```
  1 from conans import ConanFile, CMake, tools
  2 from conans.errors import ConanInvalidConfiguration
  3 import os
  4 
  5 
  6 class XercesCConan(ConanFile):
  7     name = "xerces-c"
  8     description = "Xerces-C++ is a validating XML parser written in a portable subset of C++"
  9     topics = ("conan", "xerces", "XML", "validation", "DOM", "SAX", "SAX2")
  10     url = "https://github.com/conan-io/conan-center-index"
  11     homepage = "http://xerces.apache.org/xerces-c/index.html"
  12     license = "Apache-2.0"
  13     exports_sources = ["CMakeLists.txt"]
  14     generators = "cmake"
  15     settings = "os", "arch", "compiler", "build_type"
  16     options = {"shared": [True, False], "fPIC": [True, False], "char_type": ["uint16_t", "wchar_t"]}
  17     default_options = {"shared": False, "fPIC": True, "char_type": "uint16_t"}
  18 
  19     _cmake = None
  20 
  21     @property
  22     def _source_subfolder(self):
  23         return "source_subfolder"
  24 
  25     @property
  26     def _build_subfolder(self):
  27         return "build_subfolder"
  28     
  29     def validate(self):
  30         if self.options.char_type == "wchar_t" and self.settings.os != "Windows":
  31             raise ConanInvalidConfiguration("Option 'char_type=wchar_t' is only supported in Windows")
  32 
  33 
  34     def config_options(self):
  35         if self.settings.os == "Windows":
  36             del self.options.fPIC
  37 
  38     def configure(self):
  39         if self.settings.os not in ("Windows", "Macos", "Linux"):
  40             raise ConanInvalidConfiguration("OS is not supported")
  41         if self.options.shared:
  42             del self.options.fPIC
  43 
  44     def source(self):
  45         tools.get(**self.conan_data["sources"][self.version])
  46         extracted_dir = self.name + "-" + self.version
  47         os.rename(extracted_dir, self._source_subfolder)
  48 
  49     def _configure_cmake(self):
  50         if self._cmake:
  51             return self._cmake
  52         self._cmake = CMake(self)
  53         # https://xerces.apache.org/xerces-c/build-3.html
  54         self._cmake.definitions["network-accessor"] = {"Windows": "winsock",
  55                                                        "Macos": "cfurl",
  56                                                        "Linux": "socket"}.get(str(self.settings.os))
  57         self._cmake.definitions["transcoder"] = {"Windows": "windows",
  58                                                  "Macos": "macosunicodeconverter",
  59                                                  "Linux": "gnuiconv"}.get(str(self.settings.os))
  60         self._cmake.definitions["message-loader"] = "inmemory"
  61 
  62         self._cmake.definitions["xmlch-type"] = self.options.char_type
  63 
  64         self._cmake.definitions["mutex-manager"] = {"Windows": "windows",
  65                                                     "Macos": "posix",
  66                                                     "Linux": "posix"}.get(str(self.settings.os))
  67         # avoid picking up system dependency
  68         self._cmake.definitions["CMAKE_DISABLE_FIND_PACKAGE_CURL"] = True
  69         self._cmake.definitions["CMAKE_DISABLE_FIND_PACKAGE_ICU"] = True
  70         self._cmake.configure(build_folder=self._build_subfolder)
  71         return self._cmake
  72 
  73     def build(self):
  74         cmake = self._configure_cmake()
  75         cmake.build()
  76 
  77     def package(self):
  78         self.copy(pattern="LICENSE", dst="licenses", src=self._source_subfolder)
  79         cmake = self._configure_cmake()
  80         cmake.install()
  81         # remove unneeded directories
  82         tools.rmdir(os.path.join(self.package_folder, "share"))
  83         tools.rmdir(os.path.join(self.package_folder, "lib", "pkgconfig"))
  84         tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
  85         tools.rmdir(os.path.join(self.package_folder, "cmake"))
  86 
  87     def package_info(self):
  88         self.cpp_info.libs = tools.collect_libs(self)
  89         if self.settings.os == "Macos":
  90             self.cpp_info.frameworks = ["CoreFoundation", "CoreServices"]
  91         elif self.settings.os == "Linux":
  92             self.cpp_info.system_libs.append("pthread")
  93         self.cpp_info.names["cmake_find_package"] = "XercesC"
  94         self.cpp_info.names["cmake_find_package_multi"] = "XercesC"
  95
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/recipes/xerces-c/all/conanfile.py b/recipes/xerces-c/all/conanfile.py
  --- a/recipes/xerces-c/all/conanfile.py
  +++ b/recipes/xerces-c/all/conanfile.py
  @@ -5,7 +5,9 @@
   
   class XercesCConan(ConanFile):
       name = "xerces-c"
  -    description = "Xerces-C++ is a validating XML parser written in a portable subset of C++"
  +    description = (
  +        "Xerces-C++ is a validating XML parser written in a portable subset of C++"
  +    )
       topics = ("conan", "xerces", "XML", "validation", "DOM", "SAX", "SAX2")
       url = "https://github.com/conan-io/conan-center-index"
       homepage = "http://xerces.apache.org/xerces-c/index.html"
  @@ -13,7 +15,11 @@
       exports_sources = ["CMakeLists.txt"]
       generators = "cmake"
       settings = "os", "arch", "compiler", "build_type"
  -    options = {"shared": [True, False], "fPIC": [True, False], "char_type": ["uint16_t", "wchar_t"]}
  +    options = {
  +        "shared": [True, False],
  +        "fPIC": [True, False],
  +        "char_type": ["uint16_t", "char16_t", "wchar_t"],
  +    }
       default_options = {"shared": False, "fPIC": True, "char_type": "uint16_t"}
   
       _cmake = None
  @@ -25,11 +31,12 @@
       @property
       def _build_subfolder(self):
           return "build_subfolder"
  -    
  +
       def validate(self):
           if self.options.char_type == "wchar_t" and self.settings.os != "Windows":
  -            raise ConanInvalidConfiguration("Option 'char_type=wchar_t' is only supported in Windows")
  -
  +            raise ConanInvalidConfiguration(
  +                "Option 'char_type=wchar_t' is only supported in Windows"
  +            )
   
       def config_options(self):
           if self.settings.os == "Windows":
  @@ -51,19 +58,25 @@
               return self._cmake
           self._cmake = CMake(self)
           # https://xerces.apache.org/xerces-c/build-3.html
  -        self._cmake.definitions["network-accessor"] = {"Windows": "winsock",
  -                                                       "Macos": "cfurl",
  -                                                       "Linux": "socket"}.get(str(self.settings.os))
  -        self._cmake.definitions["transcoder"] = {"Windows": "windows",
  -                                                 "Macos": "macosunicodeconverter",
  -                                                 "Linux": "gnuiconv"}.get(str(self.settings.os))
  +        self._cmake.definitions["network-accessor"] = {
  +            "Windows": "winsock",
  +            "Macos": "cfurl",
  +            "Linux": "socket",
  +        }.get(str(self.settings.os))
  +        self._cmake.definitions["transcoder"] = {
  +            "Windows": "windows",
  +            "Macos": "macosunicodeconverter",
  +            "Linux": "gnuiconv",
  +        }.get(str(self.settings.os))
           self._cmake.definitions["message-loader"] = "inmemory"
   
           self._cmake.definitions["xmlch-type"] = self.options.char_type
   
  -        self._cmake.definitions["mutex-manager"] = {"Windows": "windows",
  -                                                    "Macos": "posix",
  -                                                    "Linux": "posix"}.get(str(self.settings.os))
  +        self._cmake.definitions["mutex-manager"] = {
  +            "Windows": "windows",
  +            "Macos": "posix",
  +            "Linux": "posix",
  +        }.get(str(self.settings.os))
           # avoid picking up system dependency
           self._cmake.definitions["CMAKE_DISABLE_FIND_PACKAGE_CURL"] = True
           self._cmake.definitions["CMAKE_DISABLE_FIND_PACKAGE_ICU"] = True
  
verification_info: {"golden_diff": "diff --git a/recipes/xerces-c/all/conanfile.py b/recipes/xerces-c/all/conanfile.py\n--- a/recipes/xerces-c/all/conanfile.py\n+++ b/recipes/xerces-c/all/conanfile.py\n@@ -5,7 +5,9 @@\n \n class XercesCConan(ConanFile):\n     name = \"xerces-c\"\n-    description = \"Xerces-C++ is a validating XML parser written in a portable subset of C++\"\n+    description = (\n+        \"Xerces-C++ is a validating XML parser written in a portable subset of C++\"\n+    )\n     topics = (\"conan\", \"xerces\", \"XML\", \"validation\", \"DOM\", \"SAX\", \"SAX2\")\n     url = \"https://github.com/conan-io/conan-center-index\"\n     homepage = \"http://xerces.apache.org/xerces-c/index.html\"\n@@ -13,7 +15,11 @@\n     exports_sources = [\"CMakeLists.txt\"]\n     generators = \"cmake\"\n     settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n-    options = {\"shared\": [True, False], \"fPIC\": [True, False], \"char_type\": [\"uint16_t\", \"wchar_t\"]}\n+    options = {\n+        \"shared\": [True, False],\n+        \"fPIC\": [True, False],\n+        \"char_type\": [\"uint16_t\", \"char16_t\", \"wchar_t\"],\n+    }\n     default_options = {\"shared\": False, \"fPIC\": True, \"char_type\": \"uint16_t\"}\n \n     _cmake = None\n@@ -25,11 +31,12 @@\n     @property\n     def _build_subfolder(self):\n         return \"build_subfolder\"\n-    \n+\n     def validate(self):\n         if self.options.char_type == \"wchar_t\" and self.settings.os != \"Windows\":\n-            raise ConanInvalidConfiguration(\"Option 'char_type=wchar_t' is only supported in Windows\")\n-\n+            raise ConanInvalidConfiguration(\n+                \"Option 'char_type=wchar_t' is only supported in Windows\"\n+            )\n \n     def config_options(self):\n         if self.settings.os == \"Windows\":\n@@ -51,19 +58,25 @@\n             return self._cmake\n         self._cmake = CMake(self)\n         # https://xerces.apache.org/xerces-c/build-3.html\n-        self._cmake.definitions[\"network-accessor\"] = {\"Windows\": \"winsock\",\n-                                                       \"Macos\": \"cfurl\",\n-                                                       \"Linux\": \"socket\"}.get(str(self.settings.os))\n-        self._cmake.definitions[\"transcoder\"] = {\"Windows\": \"windows\",\n-                                                 \"Macos\": \"macosunicodeconverter\",\n-                                                 \"Linux\": \"gnuiconv\"}.get(str(self.settings.os))\n+        self._cmake.definitions[\"network-accessor\"] = {\n+            \"Windows\": \"winsock\",\n+            \"Macos\": \"cfurl\",\n+            \"Linux\": \"socket\",\n+        }.get(str(self.settings.os))\n+        self._cmake.definitions[\"transcoder\"] = {\n+            \"Windows\": \"windows\",\n+            \"Macos\": \"macosunicodeconverter\",\n+            \"Linux\": \"gnuiconv\",\n+        }.get(str(self.settings.os))\n         self._cmake.definitions[\"message-loader\"] = \"inmemory\"\n \n         self._cmake.definitions[\"xmlch-type\"] = self.options.char_type\n \n-        self._cmake.definitions[\"mutex-manager\"] = {\"Windows\": \"windows\",\n-                                                    \"Macos\": \"posix\",\n-                                                    \"Linux\": \"posix\"}.get(str(self.settings.os))\n+        self._cmake.definitions[\"mutex-manager\"] = {\n+            \"Windows\": \"windows\",\n+            \"Macos\": \"posix\",\n+            \"Linux\": \"posix\",\n+        }.get(str(self.settings.os))\n         # avoid picking up system dependency\n         self._cmake.definitions[\"CMAKE_DISABLE_FIND_PACKAGE_CURL\"] = True\n         self._cmake.definitions[\"CMAKE_DISABLE_FIND_PACKAGE_ICU\"] = True\n", "issue": "[package] xerces-c/3.2.3: xmlch-type should be a package option\n<!-- \r\n  Please don't forget to update the issue title.\r\n  Include all applicable information to help us reproduce your problem.\r\n-->\r\n\r\n### Package and Environment Details (include every applicable attribute)\r\n  * Package Name/Version: **xerces-c/3.2.3**\r\n  * Operating System+version: **Windows 10**\r\n  * Compiler+version: **Visual Studio 2019**\r\n  * Conan version: **conan 1.37.0**\r\n  * Python version: **Python 3.9**\r\n\r\n\r\n### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)\r\n```\r\n[settings]\r\nos=Windows\r\nos_build=Windows\r\narch=x86_64\r\narch_build=x86_64\r\ncompiler=Visual Studio\r\ncompiler.version=16\r\nbuild_type=Release\r\n[options]\r\n[build_requires]\r\n*: cmake/3.19.6\r\n[env]\r\n```\r\n\r\nAccording to the library [cmake-files](https://github.com/apache/xerces-c/blob/v3.2.3/cmake/XercesXMLCh.cmake) `xerces-c` supports `uint16_t`, `char16_t` and `wchar_t`, while the current [recipe supports only `uint16_t`](https://github.com/conan-io/conan-center-index/blob/c4f06bca2cf69dd5429f4867bced49872e4300a2/recipes/xerces-c/all/conanfile.py#L54).\r\n\r\nThe library, I am working on, uses `char16_t` for the `xmlch-type` and the build fails because the `xerces-c` recipe provides only `uint16_t` for `xmlch-type`:\r\n`error C2440: '<function-style-cast>': cannot convert from 'const XMLCh *' to 'std::u16string'`\r\n\r\nWe need `xmlch-type` as an option so that the user could choose any of the types supported by `xerces-c`.\n", "before_files": [{"content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\n\n\nclass XercesCConan(ConanFile):\n    name = \"xerces-c\"\n    description = \"Xerces-C++ is a validating XML parser written in a portable subset of C++\"\n    topics = (\"conan\", \"xerces\", \"XML\", \"validation\", \"DOM\", \"SAX\", \"SAX2\")\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"http://xerces.apache.org/xerces-c/index.html\"\n    license = \"Apache-2.0\"\n    exports_sources = [\"CMakeLists.txt\"]\n    generators = \"cmake\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\"shared\": [True, False], \"fPIC\": [True, False], \"char_type\": [\"uint16_t\", \"wchar_t\"]}\n    default_options = {\"shared\": False, \"fPIC\": True, \"char_type\": \"uint16_t\"}\n\n    _cmake = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    @property\n    def _build_subfolder(self):\n        return \"build_subfolder\"\n    \n    def validate(self):\n        if self.options.char_type == \"wchar_t\" and self.settings.os != \"Windows\":\n            raise ConanInvalidConfiguration(\"Option 'char_type=wchar_t' is only supported in Windows\")\n\n\n    def config_options(self):\n        if self.settings.os == \"Windows\":\n            del self.options.fPIC\n\n    def configure(self):\n        if self.settings.os not in (\"Windows\", \"Macos\", \"Linux\"):\n            raise ConanInvalidConfiguration(\"OS is not supported\")\n        if self.options.shared:\n            del self.options.fPIC\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        extracted_dir = self.name + \"-\" + self.version\n        os.rename(extracted_dir, self._source_subfolder)\n\n    def _configure_cmake(self):\n        if self._cmake:\n            return self._cmake\n        self._cmake = CMake(self)\n        # https://xerces.apache.org/xerces-c/build-3.html\n        self._cmake.definitions[\"network-accessor\"] = {\"Windows\": \"winsock\",\n                                                       \"Macos\": \"cfurl\",\n                                                       \"Linux\": \"socket\"}.get(str(self.settings.os))\n        self._cmake.definitions[\"transcoder\"] = {\"Windows\": \"windows\",\n                                                 \"Macos\": \"macosunicodeconverter\",\n                                                 \"Linux\": \"gnuiconv\"}.get(str(self.settings.os))\n        self._cmake.definitions[\"message-loader\"] = \"inmemory\"\n\n        self._cmake.definitions[\"xmlch-type\"] = self.options.char_type\n\n        self._cmake.definitions[\"mutex-manager\"] = {\"Windows\": \"windows\",\n                                                    \"Macos\": \"posix\",\n                                                    \"Linux\": \"posix\"}.get(str(self.settings.os))\n        # avoid picking up system dependency\n        self._cmake.definitions[\"CMAKE_DISABLE_FIND_PACKAGE_CURL\"] = True\n        self._cmake.definitions[\"CMAKE_DISABLE_FIND_PACKAGE_ICU\"] = True\n        self._cmake.configure(build_folder=self._build_subfolder)\n        return self._cmake\n\n    def build(self):\n        cmake = self._configure_cmake()\n        cmake.build()\n\n    def package(self):\n        self.copy(pattern=\"LICENSE\", dst=\"licenses\", src=self._source_subfolder)\n        cmake = self._configure_cmake()\n        cmake.install()\n        # remove unneeded directories\n        tools.rmdir(os.path.join(self.package_folder, \"share\"))\n        tools.rmdir(os.path.join(self.package_folder, \"lib\", \"pkgconfig\"))\n        tools.rmdir(os.path.join(self.package_folder, \"lib\", \"cmake\"))\n        tools.rmdir(os.path.join(self.package_folder, \"cmake\"))\n\n    def package_info(self):\n        self.cpp_info.libs = tools.collect_libs(self)\n        if self.settings.os == \"Macos\":\n            self.cpp_info.frameworks = [\"CoreFoundation\", \"CoreServices\"]\n        elif self.settings.os == \"Linux\":\n            self.cpp_info.system_libs.append(\"pthread\")\n        self.cpp_info.names[\"cmake_find_package\"] = \"XercesC\"\n        self.cpp_info.names[\"cmake_find_package_multi\"] = \"XercesC\"\n", "path": "recipes/xerces-c/all/conanfile.py"}], "after_files": [{"content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\n\n\nclass XercesCConan(ConanFile):\n    name = \"xerces-c\"\n    description = (\n        \"Xerces-C++ is a validating XML parser written in a portable subset of C++\"\n    )\n    topics = (\"conan\", \"xerces\", \"XML\", \"validation\", \"DOM\", \"SAX\", \"SAX2\")\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"http://xerces.apache.org/xerces-c/index.html\"\n    license = \"Apache-2.0\"\n    exports_sources = [\"CMakeLists.txt\"]\n    generators = \"cmake\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\n        \"shared\": [True, False],\n        \"fPIC\": [True, False],\n        \"char_type\": [\"uint16_t\", \"char16_t\", \"wchar_t\"],\n    }\n    default_options = {\"shared\": False, \"fPIC\": True, \"char_type\": \"uint16_t\"}\n\n    _cmake = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    @property\n    def _build_subfolder(self):\n        return \"build_subfolder\"\n\n    def validate(self):\n        if self.options.char_type == \"wchar_t\" and self.settings.os != \"Windows\":\n            raise ConanInvalidConfiguration(\n                \"Option 'char_type=wchar_t' is only supported in Windows\"\n            )\n\n    def config_options(self):\n        if self.settings.os == \"Windows\":\n            del self.options.fPIC\n\n    def configure(self):\n        if self.settings.os not in (\"Windows\", \"Macos\", \"Linux\"):\n            raise ConanInvalidConfiguration(\"OS is not supported\")\n        if self.options.shared:\n            del self.options.fPIC\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        extracted_dir = self.name + \"-\" + self.version\n        os.rename(extracted_dir, self._source_subfolder)\n\n    def _configure_cmake(self):\n        if self._cmake:\n            return self._cmake\n        self._cmake = CMake(self)\n        # https://xerces.apache.org/xerces-c/build-3.html\n        self._cmake.definitions[\"network-accessor\"] = {\n            \"Windows\": \"winsock\",\n            \"Macos\": \"cfurl\",\n            \"Linux\": \"socket\",\n        }.get(str(self.settings.os))\n        self._cmake.definitions[\"transcoder\"] = {\n            \"Windows\": \"windows\",\n            \"Macos\": \"macosunicodeconverter\",\n            \"Linux\": \"gnuiconv\",\n        }.get(str(self.settings.os))\n        self._cmake.definitions[\"message-loader\"] = \"inmemory\"\n\n        self._cmake.definitions[\"xmlch-type\"] = self.options.char_type\n\n        self._cmake.definitions[\"mutex-manager\"] = {\n            \"Windows\": \"windows\",\n            \"Macos\": \"posix\",\n            \"Linux\": \"posix\",\n        }.get(str(self.settings.os))\n        # avoid picking up system dependency\n        self._cmake.definitions[\"CMAKE_DISABLE_FIND_PACKAGE_CURL\"] = True\n        self._cmake.definitions[\"CMAKE_DISABLE_FIND_PACKAGE_ICU\"] = True\n        self._cmake.configure(build_folder=self._build_subfolder)\n        return self._cmake\n\n    def build(self):\n        cmake = self._configure_cmake()\n        cmake.build()\n\n    def package(self):\n        self.copy(pattern=\"LICENSE\", dst=\"licenses\", src=self._source_subfolder)\n        cmake = self._configure_cmake()\n        cmake.install()\n        # remove unneeded directories\n        tools.rmdir(os.path.join(self.package_folder, \"share\"))\n        tools.rmdir(os.path.join(self.package_folder, \"lib\", \"pkgconfig\"))\n        tools.rmdir(os.path.join(self.package_folder, \"lib\", \"cmake\"))\n        tools.rmdir(os.path.join(self.package_folder, \"cmake\"))\n\n    def package_info(self):\n        self.cpp_info.libs = tools.collect_libs(self)\n        if self.settings.os == \"Macos\":\n            self.cpp_info.frameworks = [\"CoreFoundation\", \"CoreServices\"]\n        elif self.settings.os == \"Linux\":\n            self.cpp_info.system_libs.append(\"pthread\")\n        self.cpp_info.names[\"cmake_find_package\"] = \"XercesC\"\n        self.cpp_info.names[\"cmake_find_package_multi\"] = \"XercesC\"\n", "path": "recipes/xerces-c/all/conanfile.py"}]}