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)