diff options
author | Sinan <sbulutw@gmail.com> | 2019-08-29 11:56:08 -0700 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-08-29 11:56:08 -0700 |
commit | 7badb818cd4c5fde2af339e323f0929b0423d430 (patch) | |
tree | e13f08679d5b725ed81a2b9eab0ae9b66f789c74 | |
parent | f03a9e8ac6ff416768be133c70458a56d692811c (diff) | |
download | spack-7badb818cd4c5fde2af339e323f0929b0423d430.tar.gz spack-7badb818cd4c5fde2af339e323f0929b0423d430.tar.bz2 spack-7badb818cd4c5fde2af339e323f0929b0423d430.tar.xz spack-7badb818cd4c5fde2af339e323f0929b0423d430.zip |
qjson package: enable building with qt4 (#12577)
-rw-r--r-- | var/spack/repos/builtin/packages/qjson/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/qjson/package.py b/var/spack/repos/builtin/packages/qjson/package.py index 9ba3e20dad..a129b4b898 100644 --- a/var/spack/repos/builtin/packages/qjson/package.py +++ b/var/spack/repos/builtin/packages/qjson/package.py @@ -16,3 +16,9 @@ class Qjson(CMakePackage): version('0.9.0', '2846278bb5fc9aeacab80ac14b8ed48d') depends_on('qt') + + def cmake_args(self): + args = [] + if self.spec['qt'].version.up_to(1) == Version(4): + args.append('-DQT4_BUILD=ON') + return args |