summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/qt/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py
index 216498aad0..83f6eb7110 100644
--- a/var/spack/repos/builtin/packages/qt/package.py
+++ b/var/spack/repos/builtin/packages/qt/package.py
@@ -242,9 +242,15 @@ class Qt(Package):
def setup_run_environment(self, env):
env.set('QTDIR', self.prefix)
+ env.set('QTINC', self.prefix.inc)
+ env.set('QTLIB', self.prefix.lib)
+ env.prepend_path('QT_PLUGIN_PATH', self.prefix.plugins)
def setup_dependent_build_environment(self, env, dependent_spec):
env.set('QTDIR', self.prefix)
+ env.set('QTINC', self.prefix.inc)
+ env.set('QTLIB', self.prefix.lib)
+ env.prepend_path('QT_PLUGIN_PATH', self.prefix.plugins)
def setup_dependent_package(self, module, dependent_spec):
module.qmake = Executable(join_path(self.spec.prefix.bin, 'qmake'))