Skip to content

Commit

Permalink
Add package_id
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed Oct 27, 2022
1 parent c1bb276 commit 5ed45e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/openjdk/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class OpenJDK(ConanFile):
settings = "os", "arch", "compiler", "build_type"
no_copy_source = True

def package_id(self):
del self.info.settings.compiler
del self.info.settings.build_type

def validate(self):
if self.settings.arch != "x86_64":
raise ConanInvalidConfiguration("Unsupported Architecture. This package currently only supports x86_64.")
Expand Down

0 comments on commit 5ed45e4

Please sign in to comment.