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
This commit is contained in:
parent
e8de22ce46
commit
548c225d45
@ -140,7 +140,10 @@ def _std_args(pkg):
|
|||||||
]
|
]
|
||||||
|
|
||||||
if platform.mac_ver()[0]:
|
if platform.mac_ver()[0]:
|
||||||
args.append('-DCMAKE_FIND_FRAMEWORK:STRING=LAST')
|
args.extend([
|
||||||
|
'-DCMAKE_FIND_FRAMEWORK:STRING=LAST',
|
||||||
|
'-DCMAKE_FIND_APPBUNDLE:STRING=LAST'
|
||||||
|
])
|
||||||
|
|
||||||
# Set up CMake rpath
|
# Set up CMake rpath
|
||||||
args.append('-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=FALSE')
|
args.append('-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=FALSE')
|
||||||
|
@ -57,6 +57,7 @@ class Dealii(CMakePackage, CudaPackage):
|
|||||||
description='Compile with Adol-c')
|
description='Compile with Adol-c')
|
||||||
variant('doc', default=False,
|
variant('doc', default=False,
|
||||||
description='Compile with documentation')
|
description='Compile with documentation')
|
||||||
|
variant('gmsh', default=False, description='Compile with GMSH')
|
||||||
variant('gsl', default=True, description='Compile with GSL')
|
variant('gsl', default=True, description='Compile with GSL')
|
||||||
variant('hdf5', default=True,
|
variant('hdf5', default=True,
|
||||||
description='Compile with HDF5 (only with MPI)')
|
description='Compile with HDF5 (only with MPI)')
|
||||||
@ -120,6 +121,7 @@ class Dealii(CMakePackage, CudaPackage):
|
|||||||
depends_on('assimp', when='@9.0:+assimp')
|
depends_on('assimp', when='@9.0:+assimp')
|
||||||
depends_on('doxygen+graphviz', when='+doc')
|
depends_on('doxygen+graphviz', when='+doc')
|
||||||
depends_on('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('gsl', when='@8.5.0:+gsl')
|
||||||
depends_on('hdf5+mpi+hl', when='+hdf5+mpi')
|
depends_on('hdf5+mpi+hl', when='+hdf5+mpi')
|
||||||
depends_on('cuda@8:', when='+cuda')
|
depends_on('cuda@8:', when='+cuda')
|
||||||
@ -150,6 +152,7 @@ class Dealii(CMakePackage, CudaPackage):
|
|||||||
|
|
||||||
# check that the combination of variants makes sense
|
# check that the combination of variants makes sense
|
||||||
conflicts('+assimp', when='@:8.5.1')
|
conflicts('+assimp', when='@:8.5.1')
|
||||||
|
conflicts('+gmsh', when='@:8.5.1')
|
||||||
conflicts('+nanoflann', when='@:8.5.1')
|
conflicts('+nanoflann', when='@:8.5.1')
|
||||||
conflicts('+scalapack', when='@:8.5.1')
|
conflicts('+scalapack', when='@:8.5.1')
|
||||||
conflicts('+sundials', when='@:8.5.1')
|
conflicts('+sundials', when='@:8.5.1')
|
||||||
@ -266,7 +269,7 @@ def cmake_args(self):
|
|||||||
# variables:
|
# variables:
|
||||||
for library in (
|
for library in (
|
||||||
'gsl', 'hdf5', 'p4est', 'petsc', 'slepc', 'trilinos', 'metis',
|
'gsl', 'hdf5', 'p4est', 'petsc', 'slepc', 'trilinos', 'metis',
|
||||||
'sundials', 'nanoflann', 'assimp'):
|
'sundials', 'nanoflann', 'assimp', 'gmsh'):
|
||||||
if library in spec:
|
if library in spec:
|
||||||
options.extend([
|
options.extend([
|
||||||
'-D%s_DIR=%s' % (library.upper(), spec[library].prefix),
|
'-D%s_DIR=%s' % (library.upper(), spec[library].prefix),
|
||||||
|
Loading…
Reference in New Issue
Block a user