summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2017-12-19 08:28:55 +0100
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2017-12-19 08:28:55 +0100
commit548c225d458e383e7f032a158812035be3e45454 (patch)
tree71eb07b5efe9590af86248be991fad70c2cd19e5 /var
parente8de22ce4664fcb6e8a4a45f6345c4e36e670b6f (diff)
downloadspack-548c225d458e383e7f032a158812035be3e45454.tar.gz
spack-548c225d458e383e7f032a158812035be3e45454.tar.bz2
spack-548c225d458e383e7f032a158812035be3e45454.tar.xz
spack-548c225d458e383e7f032a158812035be3e45454.zip
dealii: add GMSH, add CMAKE_FIND_APPBUNDLE to CMakePackage (#6723)
* dealii: add GMSH dependency * CMakePackage: add CMAKE_FIND_APPBUNDLE to prevent picking up binaries from /Applications
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/dealii/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/dealii/package.py b/var/spack/repos/builtin/packages/dealii/package.py
index bed9d53afa..e26da2bf8a 100644
--- a/var/spack/repos/builtin/packages/dealii/package.py
+++ b/var/spack/repos/builtin/packages/dealii/package.py
@@ -57,6 +57,7 @@ class Dealii(CMakePackage, CudaPackage):
description='Compile with Adol-c')
variant('doc', default=False,
description='Compile with documentation')
+ variant('gmsh', default=False, description='Compile with GMSH')
variant('gsl', default=True, description='Compile with GSL')
variant('hdf5', default=True,
description='Compile with HDF5 (only with MPI)')
@@ -120,6 +121,7 @@ class Dealii(CMakePackage, CudaPackage):
depends_on('assimp', when='@9.0:+assimp')
depends_on('doxygen+graphviz', when='+doc')
depends_on('graphviz', when='+doc')
+ depends_on('gmsh', when='@9.0:+gmsh', type=('build', 'run'))
depends_on('gsl', when='@8.5.0:+gsl')
depends_on('hdf5+mpi+hl', when='+hdf5+mpi')
depends_on('cuda@8:', when='+cuda')
@@ -150,6 +152,7 @@ class Dealii(CMakePackage, CudaPackage):
# check that the combination of variants makes sense
conflicts('+assimp', when='@:8.5.1')
+ conflicts('+gmsh', when='@:8.5.1')
conflicts('+nanoflann', when='@:8.5.1')
conflicts('+scalapack', when='@:8.5.1')
conflicts('+sundials', when='@:8.5.1')
@@ -266,7 +269,7 @@ class Dealii(CMakePackage, CudaPackage):
# variables:
for library in (
'gsl', 'hdf5', 'p4est', 'petsc', 'slepc', 'trilinos', 'metis',
- 'sundials', 'nanoflann', 'assimp'):
+ 'sundials', 'nanoflann', 'assimp', 'gmsh'):
if library in spec:
options.extend([
'-D%s_DIR=%s' % (library.upper(), spec[library].prefix),