summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2019-08-29 11:56:08 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2019-08-29 11:56:08 -0700
commit7badb818cd4c5fde2af339e323f0929b0423d430 (patch)
treee13f08679d5b725ed81a2b9eab0ae9b66f789c74
parentf03a9e8ac6ff416768be133c70458a56d692811c (diff)
downloadspack-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.py6
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