Skip to content

Commit

Permalink
Added check for Qt version
Browse files Browse the repository at this point in the history
  • Loading branch information
ashley-b committed Nov 19, 2024
1 parent 2d6ef48 commit 0bcef93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes/qwt/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ def requirements(self):
self.requires("qt/[~5.15]", transitive_headers=True, transitive_libs=True)

def validate(self):
qt_version = Version(self.dependencies["qt"].ref.version)
if not 5 <= qt_version.major <= 6:
raise ConanInvalidConfiguration(f"{self.name} doesn't support Qt/{qt_version}. Allowed Qt version are 5 or 6")
if hasattr(self, "settings_build") and cross_building(self):
raise ConanInvalidConfiguration("Qwt recipe does not support cross-compilation yet")
qt_options = self.dependencies["qt"].options
Expand Down

0 comments on commit 0bcef93

Please sign in to comment.