Skip to content

Commit

Permalink
(#14451) qwt: rely on self.info.options in validate()
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm authored Nov 30, 2022
1 parent b87be74 commit 3f85925
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recipes/qwt/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ def validate(self):
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
if self.options.widgets and not qt_options.widgets:
if self.info.options.widgets and not qt_options.widgets:
raise ConanInvalidConfiguration("qwt:widgets=True requires qt:widgets=True")
if self.options.svg and not qt_options.qtsvg:
if self.info.options.svg and not qt_options.qtsvg:
raise ConanInvalidConfiguration("qwt:svg=True requires qt:qtsvg=True")
if self.options.opengl and qt_options.opengl == "no":
if self.info.options.opengl and qt_options.opengl == "no":
raise ConanInvalidConfiguration("qwt:opengl=True is not compatible with qt:opengl=no")
if self.options.designer and not (qt_options.qttools and qt_options.gui and qt_options.widgets):
if self.info.options.designer and not (qt_options.qttools and qt_options.gui and qt_options.widgets):
raise ConanInvalidConfiguration("qwt:designer=True requires qt:qttools=True, qt::gui=True and qt::widgets=True")

def build_requirements(self):
Expand Down

0 comments on commit 3f85925

Please sign in to comment.