Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ashley-b committed Dec 1, 2023
1 parent 619ee29 commit 69029ca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions recipes/qwt/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ class QwtConan(ConanFile):
def _is_legacy_one_profile(self):
return not hasattr(self, "settings_build")

@property
def _is_qt_version_6(self):
return Version(self.dependencies["qt"].ref.version).major == "6"

@property
def _min_cppstd(self):
return 17 if self.dependencies["qt"].ref.version >= 6 else 11
return 17 if self._is_qt_version_6 else 11

def export_sources(self):
export_conandata_patches(self)
Expand Down Expand Up @@ -145,7 +149,7 @@ def package_info(self):
self.cpp_info.defines.append("NO_QWT_WIDGETS")
if self.options.opengl:
self.cpp_info.requires.append("qt::qtOpenGL")
if Version(self.dependencies["qt"].ref.version).major >= "6":
if self._is_qt_version_6:
self.cpp_info.requires.append("qt::qtOpenGLWidgets")
else:
self.cpp_info.defines.append("QWT_NO_OPENGL")
Expand Down

0 comments on commit 69029ca

Please sign in to comment.