qtkeychain package: enable building with qt4 (#12578)

This commit is contained in:
Sinan 2019-08-29 11:55:11 -07:00 committed by Peter Scheibel
parent 972759896e
commit f03a9e8ac6

View file

@ -16,3 +16,9 @@ class Qtkeychain(CMakePackage):
depends_on('qt+dbus')
depends_on('libsecret')
def cmake_args(self):
args = []
if self.spec['qt'].version.up_to(1) == Version(4):
args.append('-DBUILD_WITH_QT4=ON')
return args