summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCameron Smith <cwsmith@users.noreply.github.com>2021-06-08 20:28:34 -0400
committerGitHub <noreply@github.com>2021-06-08 18:28:34 -0600
commit7499212bc1701aed8109ebd882f4ff804300748e (patch)
tree25b01f036a0df07843c91a997fbd242f7cc58fcf /var
parent7e9ed7e56d6d45e6d45bf618fdf1a4e5199d9e6d (diff)
downloadspack-7499212bc1701aed8109ebd882f4ff804300748e.tar.gz
spack-7499212bc1701aed8109ebd882f4ff804300748e.tar.bz2
spack-7499212bc1701aed8109ebd882f4ff804300748e.tar.xz
spack-7499212bc1701aed8109ebd882f4ff804300748e.zip
pumi: support building tests (#24202)
fix sub directory path to meshes git submodule
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pumi/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/pumi/package.py b/var/spack/repos/builtin/packages/pumi/package.py
index b32f7f4f3e..2780bcfb00 100644
--- a/var/spack/repos/builtin/packages/pumi/package.py
+++ b/var/spack/repos/builtin/packages/pumi/package.py
@@ -38,6 +38,7 @@ class Pumi(CMakePackage):
variant('shared', default=False, description='Build shared libraries')
variant('zoltan', default=False, description='Enable Zoltan Features')
variant('fortran', default=False, description='Enable FORTRAN interface')
+ variant('testing', default=False, description='Enable tests')
variant('simmodsuite', default='none',
values=('none', 'base', 'kernels', 'full'),
description="Enable Simmetrix SimModSuite Support: 'base' enables "
@@ -76,7 +77,8 @@ class Pumi(CMakePackage):
'-DMDS_ID_TYPE=%s' % ('long' if '+int64' in spec else 'int'),
'-DSKIP_SIMMETRIX_VERSION_CHECK=%s' %
('ON' if '~simmodsuite_version_check' in spec else 'OFF'),
- '-DMESHES=%s' % join_path(self.stage.source_path, 'pumi_meshes')
+ self.define_from_variant('IS_TESTING', 'testing'),
+ '-DMESHES=%s' % join_path(self.stage.source_path, 'pumi-meshes')
]
if spec.satisfies('@2.2.3'):
args += ['-DCMAKE_CXX_STANDARD=11']