Skip to content

Commit

Permalink
coin-clp : requirement version management in conanfile
Browse files Browse the repository at this point in the history
  • Loading branch information
oleurodecision committed Jan 19, 2023
1 parent 7c5aeb2 commit ff35f15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 0 additions & 7 deletions recipes/coin-clp/all/conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ sources:
"1.17.7":
url: "https://github.com/coin-or/Clp/archive/releases/1.17.7.tar.gz"
sha256: "c4c2c0e014220ce8b6294f3be0f3a595a37bef58a14bf9bac406016e9e73b0f5"
requirements:
"1.17.6":
- "coin-utils/2.11.4"
- "coin-osi/0.108.6"
"1.17.7":
- "coin-utils/2.11.6"
- "coin-osi/0.108.7"
patches:
"1.17.6":
- patch_file: "patches/0001-no-pkg-config-check.patch"
Expand Down
8 changes: 6 additions & 2 deletions recipes/coin-clp/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ def configure(self):
del self.options.fPIC

def requirements(self):
for req in self.conan_data["requirements"][self.version]:
self.requires(req)
if self.version == "1.17.6":
self.requires("coin-utils/2.11.4")
self.requires("coin-osi/0.108.6")
else:
self.requires("coin-utils/2.11.6")
self.requires("coin-osi/0.108.7")

def validate(self):
if self.settings.os == "Windows" and self.options.shared:
Expand Down

0 comments on commit ff35f15

Please sign in to comment.