diff options
author | Paschalis Korosoglou <pkoro@grid.auth.gr> | 2017-12-17 04:37:20 +0200 |
---|---|---|
committer | Christoph Junghans <christoph.junghans@gmail.com> | 2017-12-16 19:37:20 -0700 |
commit | 61dbd3182d6c48f9c32ad67360cf32e9d248d937 (patch) | |
tree | f790dbc7fbd460a1d26aeb9148a57372a43f4c9d /var | |
parent | 87420dccee42dfc51aa1844fb28ae6e2ecfc6333 (diff) | |
download | spack-61dbd3182d6c48f9c32ad67360cf32e9d248d937.tar.gz spack-61dbd3182d6c48f9c32ad67360cf32e9d248d937.tar.bz2 spack-61dbd3182d6c48f9c32ad67360cf32e9d248d937.tar.xz spack-61dbd3182d6c48f9c32ad67360cf32e9d248d937.zip |
Add clanguage variant for petsc (#6689)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/petsc/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index 838369f4e4..bdc3d30c92 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -83,6 +83,9 @@ class Petsc(Package): description='Activates support for Trilinos (only parallel)') variant('int64', default=False, description='Compile with 64bit indices') + variant('clanguage', default='C', values=('C', 'C++'), + description='Specify C (recommended) or C++ to compile PETSc', + multi=False) # 3.8.0 has a build issue with MKL - so list this conflict explicitly conflicts('^intel-mkl', when='@3.8.0') @@ -199,6 +202,11 @@ class Petsc(Package): if 'trilinos' in spec: options.append('--with-cxx-dialect=C++11') + if self.spec.satisfies('clanguage=C++'): + options.append('--with-clanguage=C++') + else: + options.append('--with-clanguage=C') + # Help PETSc pick up Scalapack from MKL: if 'scalapack' in spec: scalapack = spec['scalapack'].libs |