diff options
author | Sajid Ali <30510036+s-sajid-ali@users.noreply.github.com> | 2018-11-17 21:35:37 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-11-17 21:35:37 -0600 |
commit | c45080398c250c788887943d843d80222944e18b (patch) | |
tree | 263a57bddfe97d0b5e2465c4fc2a1eff04506b9d /var | |
parent | 93879e575db9686b34bc5500415cea7597fd1006 (diff) | |
download | spack-c45080398c250c788887943d843d80222944e18b.tar.gz spack-c45080398c250c788887943d843d80222944e18b.tar.bz2 spack-c45080398c250c788887943d843d80222944e18b.tar.xz spack-c45080398c250c788887943d843d80222944e18b.zip |
Add +x variant to petsc. (#9830)
* modified: var/spack/repos/builtin/packages/petsc/package.py
* Update package.py
* Update package.py
* Update package.py
* Update package.py
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/petsc/package.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index 8be5d8cce5..3d13887fa8 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -80,6 +80,9 @@ class Petsc(Package): variant('suite-sparse', default=False, description='Activates support for SuiteSparse') + variant('X', default=False, + description='Activate X support') + # 3.8.0 has a build issue with MKL - so list this conflict explicitly conflicts('^intel-mkl', when='@3.8.0') @@ -146,6 +149,7 @@ class Petsc(Package): depends_on('trilinos@xsdk-0.2.0', when='@xsdk-0.2.0+trilinos+mpi') depends_on('trilinos@develop', when='@xdevelop+trilinos+mpi') depends_on('suite-sparse', when='+suite-sparse') + depends_on('libx11', when='+X') def mpi_dependent_options(self): if '~mpi' in self.spec: @@ -183,7 +187,6 @@ class Petsc(Package): def install(self, spec, prefix): options = ['--with-ssl=0', - '--with-x=0', '--download-c2html=0', '--download-sowing=0', '--download-hwloc=0', @@ -210,6 +213,11 @@ class Petsc(Package): '--with-blas-lapack-lib=%s' % lapack_blas.joined() ]) + if '+X' in spec: + options.append('--with-x=1') + else: + options.append('--with-x=0') + if 'trilinos' in spec: options.append('--with-cxx-dialect=C++11') if spec.satisfies('^trilinos+boost'): |