summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2020-02-21 13:11:12 -0500
committerGitHub <noreply@github.com>2020-02-21 12:11:12 -0600
commit08b5264607ce700d5f7352fb29923084f343c549 (patch)
tree5e5cebab595133a79af22dc55f588b3ae8c806fd
parentfabd8693b93342cb777b027f3b4dd089f29b4960 (diff)
downloadspack-08b5264607ce700d5f7352fb29923084f343c549.tar.gz
spack-08b5264607ce700d5f7352fb29923084f343c549.tar.bz2
spack-08b5264607ce700d5f7352fb29923084f343c549.tar.xz
spack-08b5264607ce700d5f7352fb29923084f343c549.zip
Disable qt3d when opengl is disabled (#15149)
* Disable qt3d when opengl is disabled * Remove `-skip qtquick3d` unless QT 5.14 Found while checking build of qt 5.14.
-rw-r--r--var/spack/repos/builtin/packages/qt/package.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py
index 4e6af88bb7..c07aa5c86e 100644
--- a/var/spack/repos/builtin/packages/qt/package.py
+++ b/var/spack/repos/builtin/packages/qt/package.py
@@ -359,9 +359,6 @@ class Qt(Package):
'-{0}opengl'.format('' if '+opengl' in self.spec else 'no-'),
'-release',
'-confirm-license',
- '-openssl-linked',
- openssl.libs.search_flags,
- openssl.headers.include_flags,
'-optimized-qmake',
'-no-pch',
]
@@ -380,7 +377,11 @@ class Qt(Package):
config_args.append('-no-freetype')
if '+ssl' in self.spec:
- config_args.append('-openssl-linked')
+ config_args.extend([
+ '-openssl-linked',
+ openssl.libs.search_flags,
+ openssl.headers.include_flags,
+ ])
else:
config_args.append('-no-openssl')
@@ -568,6 +569,12 @@ class Qt(Package):
if version >= Version('5.10') and '~opengl' in spec:
config_args.extend([
'-skip', 'webglplugin',
+ '-skip', 'qt3d',
+ ])
+
+ if version >= Version('5.14') and '~opengl' in spec:
+ config_args.extend([
+ '-skip', 'qtquick3d',
])
configure(*config_args)