Skip to content

Commit

Permalink
libssh2: only depend on cmake in most recent version (#26069)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrilRBS authored Dec 10, 2024
1 parent 879e140 commit f19d73a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recipes/libssh2/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f19d73a

Please sign in to comment.