summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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