Skip to content

Commit

Permalink
fix validation
Browse files Browse the repository at this point in the history
  • Loading branch information
toge committed Aug 18, 2024
1 parent c911deb commit 6988e10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/box2d/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@ def requirements(self):
self.requires("simde/0.8.2")

def validate(self):
if Version(self.version) < "3.0.0":
return

minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)
if minimum_version and Version(self.settings.compiler.version) < minimum_version:
raise ConanInvalidConfiguration(
f"{self.ref} requires C{self._min_cppstd}, which your compiler does not support."
f"{self.ref} requires C17, which your compiler does not support."
)

def build_requirements(self):
Expand Down

0 comments on commit 6988e10

Please sign in to comment.