summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Smith <cwsmith@users.noreply.github.com>2018-06-27 11:03:46 -0400
committerAdam J. Stewart <ajstewart426@gmail.com>2018-06-27 10:03:46 -0500
commitda011bc7fb9278306ecd44e8cf97bff37f8b0bb7 (patch)
treecd207b23c06785095ba3ece8cc9220b9ee0b1d03
parentcdf98235997be6ff8b06280c04eda9661631ac38 (diff)
downloadspack-da011bc7fb9278306ecd44e8cf97bff37f8b0bb7.tar.gz
spack-da011bc7fb9278306ecd44e8cf97bff37f8b0bb7.tar.bz2
spack-da011bc7fb9278306ecd44e8cf97bff37f8b0bb7.tar.xz
spack-da011bc7fb9278306ecd44e8cf97bff37f8b0bb7.zip
pumi: add fortran variant (#8584)
-rw-r--r--var/spack/repos/builtin/packages/pumi/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pumi/package.py b/var/spack/repos/builtin/packages/pumi/package.py
index 3866501409..a6ec15af2b 100644
--- a/var/spack/repos/builtin/packages/pumi/package.py
+++ b/var/spack/repos/builtin/packages/pumi/package.py
@@ -44,6 +44,7 @@ class Pumi(CMakePackage):
branch='master')
variant('zoltan', default=False, description='Enable Zoltan Features')
+ variant('fortran', default=False, description='Enable FORTRAN interface')
depends_on('mpi')
depends_on('cmake@3:', type='build')
@@ -57,6 +58,9 @@ class Pumi(CMakePackage):
'-DENABLE_ZOLTAN=%s' % ('ON' if '+zoltan' in spec else 'OFF'),
'-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc,
'-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx,
+ '-DCMAKE_Fortran_COMPILER=%s' % spec['mpi'].mpifc,
+ '-DPUMI_FORTRAN_INTERFACE=%s' %
+ ('ON' if '+fortran' in spec else 'OFF')
]
return args