diff --git a/var/spack/repos/builtin/packages/qt-base/package.py b/var/spack/repos/builtin/packages/qt-base/package.py index 2d7d959d4a..7170de50dc 100644 --- a/var/spack/repos/builtin/packages/qt-base/package.py +++ b/var/spack/repos/builtin/packages/qt-base/package.py @@ -242,3 +242,6 @@ def define_feature(key, variant=None): define("FEATURE_system_" + k, v) return args + + def setup_dependent_package(self, module, dependent_spec): + module.qmake = Executable(self.spec.prefix.bin.qmake) diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py index af553b615f..89dc0f0b79 100644 --- a/var/spack/repos/builtin/packages/qt/package.py +++ b/var/spack/repos/builtin/packages/qt/package.py @@ -335,7 +335,7 @@ def setup_dependent_build_environment(self, env, dependent_spec): 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")) + module.qmake = Executable(self.spec.prefix.bin.qmake) def get_mkspec(self): """Determine the mkspecs root directory and QT platform."""