We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[package] qwt/6.2.0: Unresolvable conflict between requires and build_requires
### Description

Using https://github.com/EstebanDugueperoux2/qwtExample example, today I get following error:

```
WARN: qt/5.15.5: requirement openssl/1.1.1s overridden by qwt/6.2.0 to openssl/1.1.1q 
WARN: libmysqlclient/8.0.30: requirement openssl/1.1.1s overridden by qt/5.15.5 to openssl/1.1.1q 
ERROR: Conflict in qt/5.15.5:
    'qt/5.15.5' requires 'openssl/1.1.1s' while 'cmake/3.23.2' requires 'openssl/1.1.1q'.
    To fix this conflict you need to override the package 'openssl' in your root package.
```

Even by overriding openssl dependency because it is a conflict between a require and a build_require.
See https://github.com/conan-io/conan/issues/4753.


### Package and Environment Details

* Package Name/Version: **qwt/6.2.0**
* Operating System+version: **conanio/gcc8**
* Compiler+version: **GCC 8**
* Docker image: **conanio/gcc8**
* Conan version: **conan 1.54.0**
* Python version: **Python 3.7.13**


### Conan profile

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=8
compiler.libcxx=libstdc++11
build_type=Release
# tests can be linked with gtest libraries only if using same build_type,
# see https://stackoverflow.com/questions/41408216/gtest-installed-with-conan-undefined-reference-to-testinginternalgetboolas/41409311#41409311
gtest:build_type=Debug
[options]
[build_requires]
[env]


### Steps to reproduce

docker run --rm -ti -v ${PWD}:/home/conan/project conanio/gcc8
cd project

export OPTIONS="--profile:build .conan/profiles/gcc8 --profile:host .conan/profiles/gcc8 -s qwt_example:build_type=Debug"
export PACKAGE_VERSION=`conan inspect . --raw version`
conan install    . --install-folder=build --build missing $OPTIONS

### Logs

<details><summary>Click to expand log</summary>

```
WARN: qt/5.15.5: requirement openssl/1.1.1s overridden by qwt/6.2.0 to openssl/1.1.1q 
WARN: libmysqlclient/8.0.30: requirement openssl/1.1.1s overridden by qt/5.15.5 to openssl/1.1.1q 
ERROR: Conflict in qt/5.15.5:
    'qt/5.15.5' requires 'openssl/1.1.1s' while 'cmake/3.23.2' requires 'openssl/1.1.1q'.
    To fix this conflict you need to override the package 'openssl' in your root package.
```

</details>


--- 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/qwt/all/conanfile.py`
Content:
```
1 from conan import ConanFile
2 from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps, cmake_layout
3 from conan.tools.files import apply_conandata_patches, copy, get, rmdir
4 from conan.tools.build import cross_building
5 from conan.errors import ConanInvalidConfiguration
6 import os
7 
8 required_conan_version = ">=1.50"
9 
10 class QwtConan(ConanFile):
11     name = "qwt"
12     license = "LGPL-2.1-or-later"
13     url = "https://github.com/conan-io/conan-center-index"
14     homepage = "https://qwt.sourceforge.io/"
15     topics = ("conan", "archive", "compression")
16     description = (
17         "The Qwt library contains GUI Components and utility classes which are primarily useful for programs "
18         "with a technical background. Beside a framework for 2D plots it provides scales, sliders, dials, compasses, "
19         "thermometers, wheels and knobs to control or display values, arrays, or ranges of type double."
20     )
21     settings = "os", "compiler", "build_type", "arch"
22     options = {
23         "shared": [True, False],
24         "fPIC": [True, False],
25         "plot": [True, False],
26         "widgets": [True, False],
27         "svg": [True, False],
28         "opengl": [True, False],
29         "designer": [True, False],
30         "polar": [True, False],
31         "playground": [True, False],
32         "examples": [True, False],
33         "test": [True, False],
34     }
35     default_options = {
36         "shared": False,
37         "fPIC": True,
38         "plot": True,
39         "widgets": True,
40         "svg": False,
41         "opengl": True,
42         "designer": False,
43         "polar": True,
44         "playground": False,
45         "examples": False,
46         "test": False
47     }
48 
49     tool_requires  = (
50         "cmake/3.23.2",
51         "ninja/1.11.0"
52     )
53 
54     def _patch_sources(self):
55         apply_conandata_patches(self)
56 
57     def export_sources(self):
58         for p in self.conan_data.get("patches", {}).get(self.version, []):
59             copy(self, p["patch_file"], self.recipe_folder, self.export_sources_folder)
60 
61 
62     def requirements(self):
63         self.requires("qt/5.15.5")
64 
65     def build_requirements(self):
66         if self.settings.os == "Windows" and self.settings.compiler == "Visual Studio":
67             self.build_requires("jom/1.1.3")
68         self.tool_requires("qt/5.15.5") 
69 
70     def validate(self):
71         if hasattr(self, "settings_build") and cross_building(self, skip_x64_x86=True):
72             raise ConanInvalidConfiguration("Qwt recipe does not support cross-compilation yet")
73 
74     def config_options(self):
75         if self.settings.os == "Windows":
76             del self.options.fPIC
77 
78     def configure(self):
79         if self.options.shared:
80             del self.options.fPIC
81 
82     def source(self):
83         get(self, **self.conan_data["sources"][self.version], destination=self.source_folder, strip_root=True)
84 
85     def layout(self):
86         cmake_layout(self)
87 
88     def generate(self):
89         tc = CMakeToolchain(self, generator="Ninja")
90 
91         tc.variables["QWT_DLL"] = "ON" if self.options.shared else "OFF"
92         tc.variables["QWT_STATIC "] = "ON" if not self.options.shared else "OFF"
93         tc.variables["QWT_PLOT"] = "ON" if self.options.plot else "OFF"
94         tc.variables["QWT_WIDGETS"] = "ON" if self.options.widgets else "OFF"
95         tc.variables["QWT_SVG"] = "ON" if self.options.svg else "OFF"
96         tc.variables["QWT_OPENGL"] = "ON" if self.options.opengl else "OFF"
97         tc.variables["QWT_DESIGNER"] = "ON" if self.options.designer else "OFF"
98         tc.variables["QWT_POLAR"] = "ON" if self.options.polar else "OFF"
99         tc.variables["QWT_BUILD_PLAYGROUND"] = "ON" if self.options.playground else "OFF"
100         tc.variables["QWT_BUILD_EXAMPLES"] = "ON" if self.options.examples else "OFF"
101         tc.variables["QWT_BUILD_TESTS"] = "ON" if self.options.test else "OFF"
102         tc.variables["QWT_FRAMEWORK"] = "OFF"
103 
104         tc.generate()
105 
106         deps = CMakeDeps(self)
107         deps.generate()
108 
109     def build(self):
110         self._patch_sources()
111         cmake = CMake(self)
112         cmake.configure()
113         cmake.build()
114 
115         if self.options.test:
116             cmake.test()
117 
118     def package(self):
119         cmake = CMake(self)
120         cmake.install()
121         rmdir(self, f"{self.package_folder}/lib/pkgconfig")        
122         rmdir(self, f"{self.package_folder}/lib/cmake")
123         self.copy("COPYING", src=self.folders.source, dst="licenses")
124 
125     def package_info(self):
126         self.cpp_info.libs = ["qwt"]
127         self.env_info.QT_PLUGIN_PATH.append(os.path.join(self.package_folder, 'bin'))
128         self.env_info.QT_PLUGIN_PATH.append(os.path.join(self.package_folder, 'lib'))
129         self.cpp_info.defines = ['HAVE_QWT', 'QWT_DLL'] if self.options.shared else ['HAVE_QWT']
130         if not self.options.plot:
131             self.cpp_info.defines.append("NO_QWT_PLOT")
132         if not self.options.polar:
133             self.cpp_info.defines.append("NO_QWT_POLAR")
134         if not self.options.widgets:
135             self.cpp_info.defines.append("NO_QWT_WIDGETS")
136         if not self.options.opengl:
137             self.cpp_info.defines.append("NO_QWT_OPENGL")
138         if not self.options.svg:
139             self.cpp_info.defines.append("QWT_NO_SVG")
140 
141
```
--- 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()

```

diff --git a/recipes/qwt/all/conanfile.py b/recipes/qwt/all/conanfile.py
--- a/recipes/qwt/all/conanfile.py
+++ b/recipes/qwt/all/conanfile.py
@@ -47,8 +47,8 @@
     }
 
     tool_requires  = (
-        "cmake/3.23.2",
-        "ninja/1.11.0"
+        "cmake/3.24.2",
+        "ninja/1.11.1"
     )
 
     def _patch_sources(self):
@@ -60,12 +60,12 @@
 
 
     def requirements(self):
-        self.requires("qt/5.15.5")
+        self.requires("qt/5.15.7")
 
     def build_requirements(self):
         if self.settings.os == "Windows" and self.settings.compiler == "Visual Studio":
             self.build_requires("jom/1.1.3")
-        self.tool_requires("qt/5.15.5") 
+        self.tool_requires("qt/5.15.7") 
 
     def validate(self):
         if hasattr(self, "settings_build") and cross_building(self, skip_x64_x86=True):

{"golden_diff": "diff --git a/recipes/qwt/all/conanfile.py b/recipes/qwt/all/conanfile.py\n--- a/recipes/qwt/all/conanfile.py\n+++ b/recipes/qwt/all/conanfile.py\n@@ -47,8 +47,8 @@\n     }\n \n     tool_requires  = (\n-        \"cmake/3.23.2\",\n-        \"ninja/1.11.0\"\n+        \"cmake/3.24.2\",\n+        \"ninja/1.11.1\"\n     )\n \n     def _patch_sources(self):\n@@ -60,12 +60,12 @@\n \n \n     def requirements(self):\n-        self.requires(\"qt/5.15.5\")\n+        self.requires(\"qt/5.15.7\")\n \n     def build_requirements(self):\n         if self.settings.os == \"Windows\" and self.settings.compiler == \"Visual Studio\":\n             self.build_requires(\"jom/1.1.3\")\n-        self.tool_requires(\"qt/5.15.5\") \n+        self.tool_requires(\"qt/5.15.7\") \n \n     def validate(self):\n         if hasattr(self, \"settings_build\") and cross_building(self, skip_x64_x86=True):\n", "issue": "[package] qwt/6.2.0: Unresolvable conflict between requires and build_requires\n### Description\n\nUsing https://github.com/EstebanDugueperoux2/qwtExample example, today I get following error:\r\n\r\n```\r\nWARN: qt/5.15.5: requirement openssl/1.1.1s overridden by qwt/6.2.0 to openssl/1.1.1q \r\nWARN: libmysqlclient/8.0.30: requirement openssl/1.1.1s overridden by qt/5.15.5 to openssl/1.1.1q \r\nERROR: Conflict in qt/5.15.5:\r\n    'qt/5.15.5' requires 'openssl/1.1.1s' while 'cmake/3.23.2' requires 'openssl/1.1.1q'.\r\n    To fix this conflict you need to override the package 'openssl' in your root package.\r\n```\r\n\r\nEven by overriding openssl dependency because it is a conflict between a require and a build_require.\r\nSee https://github.com/conan-io/conan/issues/4753.\r\n\n\n### Package and Environment Details\n\n* Package Name/Version: **qwt/6.2.0**\r\n* Operating System+version: **conanio/gcc8**\r\n* Compiler+version: **GCC 8**\r\n* Docker image: **conanio/gcc8**\r\n* Conan version: **conan 1.54.0**\r\n* Python version: **Python 3.7.13**\r\n\n\n### Conan profile\n\n[settings]\r\nos=Linux\r\nos_build=Linux\r\narch=x86_64\r\narch_build=x86_64\r\ncompiler=gcc\r\ncompiler.version=8\r\ncompiler.libcxx=libstdc++11\r\nbuild_type=Release\r\n# tests can be linked with gtest libraries only if using same build_type,\r\n# see https://stackoverflow.com/questions/41408216/gtest-installed-with-conan-undefined-reference-to-testinginternalgetboolas/41409311#41409311\r\ngtest:build_type=Debug\r\n[options]\r\n[build_requires]\r\n[env]\r\n\n\n### Steps to reproduce\n\ndocker run --rm -ti -v ${PWD}:/home/conan/project conanio/gcc8\r\ncd project\r\n\r\nexport OPTIONS=\"--profile:build .conan/profiles/gcc8 --profile:host .conan/profiles/gcc8 -s qwt_example:build_type=Debug\"\r\nexport PACKAGE_VERSION=`conan inspect . --raw version`\r\nconan install    . --install-folder=build --build missing $OPTIONS\n\n### Logs\n\n<details><summary>Click to expand log</summary>\r\n\r\n```\r\nWARN: qt/5.15.5: requirement openssl/1.1.1s overridden by qwt/6.2.0 to openssl/1.1.1q \r\nWARN: libmysqlclient/8.0.30: requirement openssl/1.1.1s overridden by qt/5.15.5 to openssl/1.1.1q \r\nERROR: Conflict in qt/5.15.5:\r\n    'qt/5.15.5' requires 'openssl/1.1.1s' while 'cmake/3.23.2' requires 'openssl/1.1.1q'.\r\n    To fix this conflict you need to override the package 'openssl' in your root package.\r\n```\r\n\r\n</details>\r\n\n", "before_files": [{"content": "from conan import ConanFile\nfrom conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps, cmake_layout\nfrom conan.tools.files import apply_conandata_patches, copy, get, rmdir\nfrom conan.tools.build import cross_building\nfrom conan.errors import ConanInvalidConfiguration\nimport os\n\nrequired_conan_version = \">=1.50\"\n\nclass QwtConan(ConanFile):\n    name = \"qwt\"\n    license = \"LGPL-2.1-or-later\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"https://qwt.sourceforge.io/\"\n    topics = (\"conan\", \"archive\", \"compression\")\n    description = (\n        \"The Qwt library contains GUI Components and utility classes which are primarily useful for programs \"\n        \"with a technical background. Beside a framework for 2D plots it provides scales, sliders, dials, compasses, \"\n        \"thermometers, wheels and knobs to control or display values, arrays, or ranges of type double.\"\n    )\n    settings = \"os\", \"compiler\", \"build_type\", \"arch\"\n    options = {\n        \"shared\": [True, False],\n        \"fPIC\": [True, False],\n        \"plot\": [True, False],\n        \"widgets\": [True, False],\n        \"svg\": [True, False],\n        \"opengl\": [True, False],\n        \"designer\": [True, False],\n        \"polar\": [True, False],\n        \"playground\": [True, False],\n        \"examples\": [True, False],\n        \"test\": [True, False],\n    }\n    default_options = {\n        \"shared\": False,\n        \"fPIC\": True,\n        \"plot\": True,\n        \"widgets\": True,\n        \"svg\": False,\n        \"opengl\": True,\n        \"designer\": False,\n        \"polar\": True,\n        \"playground\": False,\n        \"examples\": False,\n        \"test\": False\n    }\n\n    tool_requires  = (\n        \"cmake/3.23.2\",\n        \"ninja/1.11.0\"\n    )\n\n    def _patch_sources(self):\n        apply_conandata_patches(self)\n\n    def export_sources(self):\n        for p in self.conan_data.get(\"patches\", {}).get(self.version, []):\n            copy(self, p[\"patch_file\"], self.recipe_folder, self.export_sources_folder)\n\n\n    def requirements(self):\n        self.requires(\"qt/5.15.5\")\n\n    def build_requirements(self):\n        if self.settings.os == \"Windows\" and self.settings.compiler == \"Visual Studio\":\n            self.build_requires(\"jom/1.1.3\")\n        self.tool_requires(\"qt/5.15.5\") \n\n    def validate(self):\n        if hasattr(self, \"settings_build\") and cross_building(self, skip_x64_x86=True):\n            raise ConanInvalidConfiguration(\"Qwt recipe does not support cross-compilation yet\")\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.options.shared:\n            del self.options.fPIC\n\n    def source(self):\n        get(self, **self.conan_data[\"sources\"][self.version], destination=self.source_folder, strip_root=True)\n\n    def layout(self):\n        cmake_layout(self)\n\n    def generate(self):\n        tc = CMakeToolchain(self, generator=\"Ninja\")\n\n        tc.variables[\"QWT_DLL\"] = \"ON\" if self.options.shared else \"OFF\"\n        tc.variables[\"QWT_STATIC \"] = \"ON\" if not self.options.shared else \"OFF\"\n        tc.variables[\"QWT_PLOT\"] = \"ON\" if self.options.plot else \"OFF\"\n        tc.variables[\"QWT_WIDGETS\"] = \"ON\" if self.options.widgets else \"OFF\"\n        tc.variables[\"QWT_SVG\"] = \"ON\" if self.options.svg else \"OFF\"\n        tc.variables[\"QWT_OPENGL\"] = \"ON\" if self.options.opengl else \"OFF\"\n        tc.variables[\"QWT_DESIGNER\"] = \"ON\" if self.options.designer else \"OFF\"\n        tc.variables[\"QWT_POLAR\"] = \"ON\" if self.options.polar else \"OFF\"\n        tc.variables[\"QWT_BUILD_PLAYGROUND\"] = \"ON\" if self.options.playground else \"OFF\"\n        tc.variables[\"QWT_BUILD_EXAMPLES\"] = \"ON\" if self.options.examples else \"OFF\"\n        tc.variables[\"QWT_BUILD_TESTS\"] = \"ON\" if self.options.test else \"OFF\"\n        tc.variables[\"QWT_FRAMEWORK\"] = \"OFF\"\n\n        tc.generate()\n\n        deps = CMakeDeps(self)\n        deps.generate()\n\n    def build(self):\n        self._patch_sources()\n        cmake = CMake(self)\n        cmake.configure()\n        cmake.build()\n\n        if self.options.test:\n            cmake.test()\n\n    def package(self):\n        cmake = CMake(self)\n        cmake.install()\n        rmdir(self, f\"{self.package_folder}/lib/pkgconfig\")        \n        rmdir(self, f\"{self.package_folder}/lib/cmake\")\n        self.copy(\"COPYING\", src=self.folders.source, dst=\"licenses\")\n\n    def package_info(self):\n        self.cpp_info.libs = [\"qwt\"]\n        self.env_info.QT_PLUGIN_PATH.append(os.path.join(self.package_folder, 'bin'))\n        self.env_info.QT_PLUGIN_PATH.append(os.path.join(self.package_folder, 'lib'))\n        self.cpp_info.defines = ['HAVE_QWT', 'QWT_DLL'] if self.options.shared else ['HAVE_QWT']\n        if not self.options.plot:\n            self.cpp_info.defines.append(\"NO_QWT_PLOT\")\n        if not self.options.polar:\n            self.cpp_info.defines.append(\"NO_QWT_POLAR\")\n        if not self.options.widgets:\n            self.cpp_info.defines.append(\"NO_QWT_WIDGETS\")\n        if not self.options.opengl:\n            self.cpp_info.defines.append(\"NO_QWT_OPENGL\")\n        if not self.options.svg:\n            self.cpp_info.defines.append(\"QWT_NO_SVG\")\n\n", "path": "recipes/qwt/all/conanfile.py"}], "after_files": [{"content": "from conan import ConanFile\nfrom conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps, cmake_layout\nfrom conan.tools.files import apply_conandata_patches, copy, get, rmdir\nfrom conan.tools.build import cross_building\nfrom conan.errors import ConanInvalidConfiguration\nimport os\n\nrequired_conan_version = \">=1.50\"\n\nclass QwtConan(ConanFile):\n    name = \"qwt\"\n    license = \"LGPL-2.1-or-later\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"https://qwt.sourceforge.io/\"\n    topics = (\"conan\", \"archive\", \"compression\")\n    description = (\n        \"The Qwt library contains GUI Components and utility classes which are primarily useful for programs \"\n        \"with a technical background. Beside a framework for 2D plots it provides scales, sliders, dials, compasses, \"\n        \"thermometers, wheels and knobs to control or display values, arrays, or ranges of type double.\"\n    )\n    settings = \"os\", \"compiler\", \"build_type\", \"arch\"\n    options = {\n        \"shared\": [True, False],\n        \"fPIC\": [True, False],\n        \"plot\": [True, False],\n        \"widgets\": [True, False],\n        \"svg\": [True, False],\n        \"opengl\": [True, False],\n        \"designer\": [True, False],\n        \"polar\": [True, False],\n        \"playground\": [True, False],\n        \"examples\": [True, False],\n        \"test\": [True, False],\n    }\n    default_options = {\n        \"shared\": False,\n        \"fPIC\": True,\n        \"plot\": True,\n        \"widgets\": True,\n        \"svg\": False,\n        \"opengl\": True,\n        \"designer\": False,\n        \"polar\": True,\n        \"playground\": False,\n        \"examples\": False,\n        \"test\": False\n    }\n\n    tool_requires  = (\n        \"cmake/3.24.2\",\n        \"ninja/1.11.1\"\n    )\n\n    def _patch_sources(self):\n        apply_conandata_patches(self)\n\n    def export_sources(self):\n        for p in self.conan_data.get(\"patches\", {}).get(self.version, []):\n            copy(self, p[\"patch_file\"], self.recipe_folder, self.export_sources_folder)\n\n\n    def requirements(self):\n        self.requires(\"qt/5.15.7\")\n\n    def build_requirements(self):\n        if self.settings.os == \"Windows\" and self.settings.compiler == \"Visual Studio\":\n            self.build_requires(\"jom/1.1.3\")\n        self.tool_requires(\"qt/5.15.7\") \n\n    def validate(self):\n        if hasattr(self, \"settings_build\") and cross_building(self, skip_x64_x86=True):\n            raise ConanInvalidConfiguration(\"Qwt recipe does not support cross-compilation yet\")\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.options.shared:\n            del self.options.fPIC\n\n    def source(self):\n        get(self, **self.conan_data[\"sources\"][self.version], destination=self.source_folder, strip_root=True)\n\n    def layout(self):\n        cmake_layout(self)\n\n    def generate(self):\n        tc = CMakeToolchain(self, generator=\"Ninja\")\n\n        tc.variables[\"QWT_DLL\"] = \"ON\" if self.options.shared else \"OFF\"\n        tc.variables[\"QWT_STATIC \"] = \"ON\" if not self.options.shared else \"OFF\"\n        tc.variables[\"QWT_PLOT\"] = \"ON\" if self.options.plot else \"OFF\"\n        tc.variables[\"QWT_WIDGETS\"] = \"ON\" if self.options.widgets else \"OFF\"\n        tc.variables[\"QWT_SVG\"] = \"ON\" if self.options.svg else \"OFF\"\n        tc.variables[\"QWT_OPENGL\"] = \"ON\" if self.options.opengl else \"OFF\"\n        tc.variables[\"QWT_DESIGNER\"] = \"ON\" if self.options.designer else \"OFF\"\n        tc.variables[\"QWT_POLAR\"] = \"ON\" if self.options.polar else \"OFF\"\n        tc.variables[\"QWT_BUILD_PLAYGROUND\"] = \"ON\" if self.options.playground else \"OFF\"\n        tc.variables[\"QWT_BUILD_EXAMPLES\"] = \"ON\" if self.options.examples else \"OFF\"\n        tc.variables[\"QWT_BUILD_TESTS\"] = \"ON\" if self.options.test else \"OFF\"\n        tc.variables[\"QWT_FRAMEWORK\"] = \"OFF\"\n\n        tc.generate()\n\n        deps = CMakeDeps(self)\n        deps.generate()\n\n    def build(self):\n        self._patch_sources()\n        cmake = CMake(self)\n        cmake.configure()\n        cmake.build()\n\n        if self.options.test:\n            cmake.test()\n\n    def package(self):\n        cmake = CMake(self)\n        cmake.install()\n        rmdir(self, f\"{self.package_folder}/lib/pkgconfig\")        \n        rmdir(self, f\"{self.package_folder}/lib/cmake\")\n        self.copy(\"COPYING\", src=self.folders.source, dst=\"licenses\")\n\n    def package_info(self):\n        self.cpp_info.libs = [\"qwt\"]\n        self.env_info.QT_PLUGIN_PATH.append(os.path.join(self.package_folder, 'bin'))\n        self.env_info.QT_PLUGIN_PATH.append(os.path.join(self.package_folder, 'lib'))\n        self.cpp_info.defines = ['HAVE_QWT', 'QWT_DLL'] if self.options.shared else ['HAVE_QWT']\n        if not self.options.plot:\n            self.cpp_info.defines.append(\"NO_QWT_PLOT\")\n        if not self.options.polar:\n            self.cpp_info.defines.append(\"NO_QWT_POLAR\")\n        if not self.options.widgets:\n            self.cpp_info.defines.append(\"NO_QWT_WIDGETS\")\n        if not self.options.opengl:\n            self.cpp_info.defines.append(\"NO_QWT_OPENGL\")\n        if not self.options.svg:\n            self.cpp_info.defines.append(\"QWT_NO_SVG\")\n\n", "path": "recipes/qwt/all/conanfile.py"}]}