summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/qt/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py
index 170c28f739..ab6adee3ca 100644
--- a/var/spack/repos/builtin/packages/qt/package.py
+++ b/var/spack/repos/builtin/packages/qt/package.py
@@ -408,9 +408,6 @@ class Qt(Package):
use_spack_dep('freetype')
if not MACOS_VERSION:
config_args.append('-fontconfig')
- elif version < Version('5.15'):
- # Linux-only QT5 dependencies
- config_args.append('-system-xcb')
else:
config_args.append('-no-freetype')
config_args.append('-no-gui')
@@ -552,6 +549,9 @@ class Qt(Package):
])
if version < Version('5.12'):
config_args.append('-no-xinput2')
+ elif version < Version('5.15') and '+gui' in spec:
+ # Linux-only QT5 dependencies
+ config_args.append('-system-xcb')
if '~webkit' in spec:
config_args.extend([