diff --git a/recipes/glfw/all/conanfile.py b/recipes/glfw/all/conanfile.py index 90b0cfaeecdac..b557f33a747f0 100644 --- a/recipes/glfw/all/conanfile.py +++ b/recipes/glfw/all/conanfile.py @@ -123,10 +123,8 @@ def generate(self): else: # Manually generate pkgconfig file of wayland-protocols since # PkgConfigDeps.build_context_activated can't work with legacy 1 profile - # We must use legacy conan v1 deps_cpp_info because self.dependencies doesn't - # contain build requirements when using 1 profile. - wp_prefix = self.deps_cpp_info["wayland-protocols"].rootpath - wp_version = self.deps_cpp_info["wayland-protocols"].version + wp_prefix = self.dependencies.build["wayland-protocols"].package_folder + wp_version = self.dependencies.build["wayland-protocols"].ref.version wp_pkg_content = textwrap.dedent(f"""\ prefix={wp_prefix} datarootdir=${{prefix}}/res