We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[request] fast-cdr/1.1.0
### Package Name/Version

fast-cdr/1.1.0

### Changelog

https://github.com/eProsima/Fast-CDR/releases/tag/v1.1.0

### Context about the new update

The Conan Center Bot detects the updatable recipe in #3470.
Open branch [qchateau/conan-center-index/ccb-fast-cdr-1.1.0](https://github.com/qchateau/conan-center-index/tree/ccb-fast-cdr-1.1.0)

--- 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/fast-cdr/all/conanfile.py`
Content:
```
1 from conan import ConanFile
2 from conan.errors import ConanInvalidConfiguration
3 from conan.tools.build import check_min_cppstd
4 from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
5 from conan.tools.files import collect_libs, copy, get, rm, rmdir, save
6 from conan.tools.microsoft import is_msvc, is_msvc_static_runtime
7 import os
8 import textwrap
9 
10 required_conan_version = ">=1.54.0"
11 
12 
13 class FastCDRConan(ConanFile):
14     name = "fast-cdr"
15     license = "Apache-2.0"
16     homepage = "https://github.com/eProsima/Fast-CDR"
17     url = "https://github.com/conan-io/conan-center-index"
18     description = "eProsima FastCDR library for serialization"
19     topics = ("dds", "middleware", "serialization")
20 
21     package_type = "library"
22     settings = "os", "arch", "compiler", "build_type"
23     options = {
24         "shared": [True, False],
25         "fPIC": [True, False],
26     }
27     default_options = {
28         "shared": False,
29         "fPIC": True,
30     }
31 
32     def config_options(self):
33         if self.settings.os == "Windows":
34             del self.options.fPIC
35 
36     def configure(self):
37         if self.options.shared:
38             self.options.rm_safe("fPIC")
39 
40     def layout(self):
41         cmake_layout(self, src_folder="src")
42 
43     def validate(self):
44         if self.settings.compiler.get_safe("cppstd"):
45             check_min_cppstd(self, 11)
46         if self.options.shared and is_msvc(self) and is_msvc_static_runtime(self):
47             # This combination leads to an fast-cdr error when linking
48             # linking dynamic '*.dll' and static MT runtime
49             # see https://github.com/eProsima/Fast-CDR/blob/v1.0.21/include/fastcdr/eProsima_auto_link.h#L37
50             # (2021-05-31)
51             raise ConanInvalidConfiguration("Mixing a dll eprosima library with a static runtime is a bad idea")
52 
53     def source(self):
54         get(self, **self.conan_data["sources"][self.version], strip_root=True)
55 
56     def generate(self):
57         tc = CMakeToolchain(self)
58         tc.variables["BUILD_STATIC"] = not self.options.shared
59         tc.generate()
60 
61     def build(self):
62         cmake = CMake(self)
63         cmake.configure()
64         cmake.build()
65 
66     def package(self):
67         copy(self, "LICENSE", src=self.source_folder, dst=os.path.join(self.package_folder, "licenses"))
68         cmake = CMake(self)
69         cmake.install()
70         rmdir(self, os.path.join(self.package_folder, "lib", "cmake"))
71         rmdir(self, os.path.join(self.package_folder, "share"))
72         rm(self, "*.pdb", os.path.join(self.package_folder, "lib"))
73         rm(self, "*.pdb", os.path.join(self.package_folder, "bin"))
74 
75         # TODO: to remove in conan v2 once cmake_find_package_* generators removed
76         self._create_cmake_module_alias_targets(
77             os.path.join(self.package_folder, self._module_file_rel_path),
78             {"fastcdr": "fastcdr::fastcdr"}
79         )
80 
81     def _create_cmake_module_alias_targets(self, module_file, targets):
82         content = ""
83         for alias, aliased in targets.items():
84             content += textwrap.dedent(f"""\
85                 if(TARGET {aliased} AND NOT TARGET {alias})
86                     add_library({alias} INTERFACE IMPORTED)
87                     set_property(TARGET {alias} PROPERTY INTERFACE_LINK_LIBRARIES {aliased})
88                 endif()
89             """)
90         save(self, module_file, content)
91 
92     @property
93     def _module_file_rel_path(self):
94         return os.path.join("lib", "cmake", f"conan-official-{self.name}-targets.cmake")
95 
96     def package_info(self):
97         self.cpp_info.set_property("cmake_file_name", "fastcdr")
98         self.cpp_info.set_property("cmake_target_name", "fastcdr")
99         self.cpp_info.libs = collect_libs(self)
100         if self.settings.os == "Windows" and self.options.shared:
101             self.cpp_info.defines.append("FASTCDR_DYN_LINK")
102 
103         # TODO: to remove in conan v2 once cmake_find_package_* generators removed
104         self.cpp_info.names["cmake_find_package"] = "fastcdr"
105         self.cpp_info.names["cmake_find_package_multi"] = "fastcdr"
106         self.cpp_info.build_modules["cmake_find_package"] = [self._module_file_rel_path]
107         self.cpp_info.build_modules["cmake_find_package_multi"] = [self._module_file_rel_path]
108
```
--- 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/fast-cdr/all/conanfile.py b/recipes/fast-cdr/all/conanfile.py
--- a/recipes/fast-cdr/all/conanfile.py
+++ b/recipes/fast-cdr/all/conanfile.py
@@ -4,6 +4,7 @@
 from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
 from conan.tools.files import collect_libs, copy, get, rm, rmdir, save
 from conan.tools.microsoft import is_msvc, is_msvc_static_runtime
+from conan.tools.scm import Version
 import os
 import textwrap
 
@@ -40,6 +41,10 @@
     def layout(self):
         cmake_layout(self, src_folder="src")
 
+    def build_requirements(self):
+        if Version(self.version) >= "1.1.0":
+            self.tool_requires("cmake/[>=3.16.3 <4]")
+
     def validate(self):
         if self.settings.compiler.get_safe("cppstd"):
             check_min_cppstd(self, 11)

{"golden_diff": "diff --git a/recipes/fast-cdr/all/conanfile.py b/recipes/fast-cdr/all/conanfile.py\n--- a/recipes/fast-cdr/all/conanfile.py\n+++ b/recipes/fast-cdr/all/conanfile.py\n@@ -4,6 +4,7 @@\n from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout\n from conan.tools.files import collect_libs, copy, get, rm, rmdir, save\n from conan.tools.microsoft import is_msvc, is_msvc_static_runtime\n+from conan.tools.scm import Version\n import os\n import textwrap\n \n@@ -40,6 +41,10 @@\n     def layout(self):\n         cmake_layout(self, src_folder=\"src\")\n \n+    def build_requirements(self):\n+        if Version(self.version) >= \"1.1.0\":\n+            self.tool_requires(\"cmake/[>=3.16.3 <4]\")\n+\n     def validate(self):\n         if self.settings.compiler.get_safe(\"cppstd\"):\n             check_min_cppstd(self, 11)\n", "issue": "[request] fast-cdr/1.1.0\n### Package Name/Version\n\nfast-cdr/1.1.0\n\n### Changelog\n\nhttps://github.com/eProsima/Fast-CDR/releases/tag/v1.1.0\n\n### Context about the new update\n\nThe Conan Center Bot detects the updatable recipe in #3470.\r\nOpen branch [qchateau/conan-center-index/ccb-fast-cdr-1.1.0](https://github.com/qchateau/conan-center-index/tree/ccb-fast-cdr-1.1.0)\n", "before_files": [{"content": "from conan import ConanFile\nfrom conan.errors import ConanInvalidConfiguration\nfrom conan.tools.build import check_min_cppstd\nfrom conan.tools.cmake import CMake, CMakeToolchain, cmake_layout\nfrom conan.tools.files import collect_libs, copy, get, rm, rmdir, save\nfrom conan.tools.microsoft import is_msvc, is_msvc_static_runtime\nimport os\nimport textwrap\n\nrequired_conan_version = \">=1.54.0\"\n\n\nclass FastCDRConan(ConanFile):\n    name = \"fast-cdr\"\n    license = \"Apache-2.0\"\n    homepage = \"https://github.com/eProsima/Fast-CDR\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    description = \"eProsima FastCDR library for serialization\"\n    topics = (\"dds\", \"middleware\", \"serialization\")\n\n    package_type = \"library\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\n        \"shared\": [True, False],\n        \"fPIC\": [True, False],\n    }\n    default_options = {\n        \"shared\": False,\n        \"fPIC\": True,\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.options.shared:\n            self.options.rm_safe(\"fPIC\")\n\n    def layout(self):\n        cmake_layout(self, src_folder=\"src\")\n\n    def validate(self):\n        if self.settings.compiler.get_safe(\"cppstd\"):\n            check_min_cppstd(self, 11)\n        if self.options.shared and is_msvc(self) and is_msvc_static_runtime(self):\n            # This combination leads to an fast-cdr error when linking\n            # linking dynamic '*.dll' and static MT runtime\n            # see https://github.com/eProsima/Fast-CDR/blob/v1.0.21/include/fastcdr/eProsima_auto_link.h#L37\n            # (2021-05-31)\n            raise ConanInvalidConfiguration(\"Mixing a dll eprosima library with a static runtime is a bad idea\")\n\n    def source(self):\n        get(self, **self.conan_data[\"sources\"][self.version], strip_root=True)\n\n    def generate(self):\n        tc = CMakeToolchain(self)\n        tc.variables[\"BUILD_STATIC\"] = not self.options.shared\n        tc.generate()\n\n    def build(self):\n        cmake = CMake(self)\n        cmake.configure()\n        cmake.build()\n\n    def package(self):\n        copy(self, \"LICENSE\", src=self.source_folder, dst=os.path.join(self.package_folder, \"licenses\"))\n        cmake = CMake(self)\n        cmake.install()\n        rmdir(self, os.path.join(self.package_folder, \"lib\", \"cmake\"))\n        rmdir(self, os.path.join(self.package_folder, \"share\"))\n        rm(self, \"*.pdb\", os.path.join(self.package_folder, \"lib\"))\n        rm(self, \"*.pdb\", os.path.join(self.package_folder, \"bin\"))\n\n        # TODO: to remove in conan v2 once cmake_find_package_* generators removed\n        self._create_cmake_module_alias_targets(\n            os.path.join(self.package_folder, self._module_file_rel_path),\n            {\"fastcdr\": \"fastcdr::fastcdr\"}\n        )\n\n    def _create_cmake_module_alias_targets(self, module_file, targets):\n        content = \"\"\n        for alias, aliased in targets.items():\n            content += textwrap.dedent(f\"\"\"\\\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            \"\"\")\n        save(self, module_file, content)\n\n    @property\n    def _module_file_rel_path(self):\n        return os.path.join(\"lib\", \"cmake\", f\"conan-official-{self.name}-targets.cmake\")\n\n    def package_info(self):\n        self.cpp_info.set_property(\"cmake_file_name\", \"fastcdr\")\n        self.cpp_info.set_property(\"cmake_target_name\", \"fastcdr\")\n        self.cpp_info.libs = collect_libs(self)\n        if self.settings.os == \"Windows\" and self.options.shared:\n            self.cpp_info.defines.append(\"FASTCDR_DYN_LINK\")\n\n        # TODO: to remove in conan v2 once cmake_find_package_* generators removed\n        self.cpp_info.names[\"cmake_find_package\"] = \"fastcdr\"\n        self.cpp_info.names[\"cmake_find_package_multi\"] = \"fastcdr\"\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", "path": "recipes/fast-cdr/all/conanfile.py"}], "after_files": [{"content": "from conan import ConanFile\nfrom conan.errors import ConanInvalidConfiguration\nfrom conan.tools.build import check_min_cppstd\nfrom conan.tools.cmake import CMake, CMakeToolchain, cmake_layout\nfrom conan.tools.files import collect_libs, copy, get, rm, rmdir, save\nfrom conan.tools.microsoft import is_msvc, is_msvc_static_runtime\nfrom conan.tools.scm import Version\nimport os\nimport textwrap\n\nrequired_conan_version = \">=1.54.0\"\n\n\nclass FastCDRConan(ConanFile):\n    name = \"fast-cdr\"\n    license = \"Apache-2.0\"\n    homepage = \"https://github.com/eProsima/Fast-CDR\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    description = \"eProsima FastCDR library for serialization\"\n    topics = (\"dds\", \"middleware\", \"serialization\")\n\n    package_type = \"library\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\n        \"shared\": [True, False],\n        \"fPIC\": [True, False],\n    }\n    default_options = {\n        \"shared\": False,\n        \"fPIC\": True,\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.options.shared:\n            self.options.rm_safe(\"fPIC\")\n\n    def layout(self):\n        cmake_layout(self, src_folder=\"src\")\n\n    def build_requirements(self):\n        if Version(self.version) >= \"1.1.0\":\n            self.tool_requires(\"cmake/[>=3.16.3 <4]\")\n\n    def validate(self):\n        if self.settings.compiler.get_safe(\"cppstd\"):\n            check_min_cppstd(self, 11)\n        if self.options.shared and is_msvc(self) and is_msvc_static_runtime(self):\n            # This combination leads to an fast-cdr error when linking\n            # linking dynamic '*.dll' and static MT runtime\n            # see https://github.com/eProsima/Fast-CDR/blob/v1.0.21/include/fastcdr/eProsima_auto_link.h#L37\n            # (2021-05-31)\n            raise ConanInvalidConfiguration(\"Mixing a dll eprosima library with a static runtime is a bad idea\")\n\n    def source(self):\n        get(self, **self.conan_data[\"sources\"][self.version], strip_root=True)\n\n    def generate(self):\n        tc = CMakeToolchain(self)\n        tc.variables[\"BUILD_STATIC\"] = not self.options.shared\n        tc.generate()\n\n    def build(self):\n        cmake = CMake(self)\n        cmake.configure()\n        cmake.build()\n\n    def package(self):\n        copy(self, \"LICENSE\", src=self.source_folder, dst=os.path.join(self.package_folder, \"licenses\"))\n        cmake = CMake(self)\n        cmake.install()\n        rmdir(self, os.path.join(self.package_folder, \"lib\", \"cmake\"))\n        rmdir(self, os.path.join(self.package_folder, \"share\"))\n        rm(self, \"*.pdb\", os.path.join(self.package_folder, \"lib\"))\n        rm(self, \"*.pdb\", os.path.join(self.package_folder, \"bin\"))\n\n        # TODO: to remove in conan v2 once cmake_find_package_* generators removed\n        self._create_cmake_module_alias_targets(\n            os.path.join(self.package_folder, self._module_file_rel_path),\n            {\"fastcdr\": \"fastcdr::fastcdr\"}\n        )\n\n    def _create_cmake_module_alias_targets(self, module_file, targets):\n        content = \"\"\n        for alias, aliased in targets.items():\n            content += textwrap.dedent(f\"\"\"\\\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            \"\"\")\n        save(self, module_file, content)\n\n    @property\n    def _module_file_rel_path(self):\n        return os.path.join(\"lib\", \"cmake\", f\"conan-official-{self.name}-targets.cmake\")\n\n    def package_info(self):\n        self.cpp_info.set_property(\"cmake_file_name\", \"fastcdr\")\n        self.cpp_info.set_property(\"cmake_target_name\", \"fastcdr\")\n        self.cpp_info.libs = collect_libs(self)\n        if self.settings.os == \"Windows\" and self.options.shared:\n            self.cpp_info.defines.append(\"FASTCDR_DYN_LINK\")\n\n        # TODO: to remove in conan v2 once cmake_find_package_* generators removed\n        self.cpp_info.names[\"cmake_find_package\"] = \"fastcdr\"\n        self.cpp_info.names[\"cmake_find_package_multi\"] = \"fastcdr\"\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", "path": "recipes/fast-cdr/all/conanfile.py"}]}