From f19d73ad5996bf1986c3736757c704faeec7ae91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abril=20Rinc=C3=B3n=20Blanco?= Date: Tue, 10 Dec 2024 21:13:06 +0100 Subject: [PATCH] libssh2: only depend on cmake in most recent version (#26069) --- recipes/libssh2/all/conanfile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/libssh2/all/conanfile.py b/recipes/libssh2/all/conanfile.py index 693bcb37db269..0a83e1e34ebac 100644 --- a/recipes/libssh2/all/conanfile.py +++ b/recipes/libssh2/all/conanfile.py @@ -6,7 +6,7 @@ from conan.tools.scm import Version import os -required_conan_version = ">=2.7" +required_conan_version = ">=2.4" class Libssh2Conan(ConanFile): @@ -98,7 +98,8 @@ def requirements(self): self.requires("mbedtls/2.28.4") def build_requirements(self): - self.tool_requires("cmake/[>=3.20 <4]") + if Version(self.version) >= "1.11": + self.tool_requires("cmake/[>=3.20 <4]") def source(self): get(self, **self.conan_data["sources"][self.version], strip_root=True)