Skip to content
Snippets Groups Projects
Commit 470a45c5 authored by Dan Ibanez's avatar Dan Ibanez Committed by Satish Balay
Browse files

omega-h: fix dependencies (#9552)

* omega-h: fix dependencies

1. Remove Gmodel altogether. Omega_h doesn't
   actually call Gmodel for anything, it was
   more or less just doing additional unit
   testing for Gmodel

2. Make Trilinos off by default. Most codes do
   not need the ParameterList interface, and
   Kokkos through Trilinos is not well explored
   in Spack

3. Use modern CMake style to choose the zlib
   dependency
parent 4225dc10
No related branches found
No related tags found
No related merge requests found
...@@ -47,16 +47,14 @@ class OmegaH(CMakePackage): ...@@ -47,16 +47,14 @@ class OmegaH(CMakePackage):
variant('shared', default=True, description='Build shared libraries') variant('shared', default=True, description='Build shared libraries')
variant('mpi', default=True, description='Activates MPI support') variant('mpi', default=True, description='Activates MPI support')
variant('zlib', default=True, description='Activates ZLib support') variant('zlib', default=True, description='Activates ZLib support')
variant('trilinos', default=True, description='Use Teuchos and Kokkos') variant('trilinos', default=False, description='Use Teuchos and Kokkos')
variant('build_type', default='') variant('build_type', default='')
variant('gmodel', default=True, description='Gmsh model generation library')
variant('throw', default=False, description='Errors throw exceptions instead of abort') variant('throw', default=False, description='Errors throw exceptions instead of abort')
variant('examples', default=False, description='Compile examples') variant('examples', default=False, description='Compile examples')
variant('optimize', default=True, description='Compile C++ with optimization') variant('optimize', default=True, description='Compile C++ with optimization')
variant('symbols', default=True, description='Compile C++ with debug symbols') variant('symbols', default=True, description='Compile C++ with debug symbols')
variant('warnings', default=False, description='Compile C++ with warnings') variant('warnings', default=False, description='Compile C++ with warnings')
depends_on('gmodel', when='+gmodel')
depends_on('gmsh', when='+examples', type='build') depends_on('gmsh', when='+examples', type='build')
depends_on('mpi', when='+mpi') depends_on('mpi', when='+mpi')
depends_on('trilinos +kokkos +teuchos', when='+trilinos') depends_on('trilinos +kokkos +teuchos', when='+trilinos')
...@@ -88,16 +86,12 @@ def cmake_args(self): ...@@ -88,16 +86,12 @@ def cmake_args(self):
args.append('-DOmega_h_USE_MPI:BOOL=OFF') args.append('-DOmega_h_USE_MPI:BOOL=OFF')
if '+trilinos' in self.spec: if '+trilinos' in self.spec:
args.append('-DOmega_h_USE_Trilinos:BOOL=ON') args.append('-DOmega_h_USE_Trilinos:BOOL=ON')
if '+gmodel' in self.spec:
args.append('-DOmega_h_USE_Gmodel:BOOL=ON')
if '+zlib' in self.spec: if '+zlib' in self.spec:
args.append('-DTPL_ENABLE_ZLIB:BOOL=ON') args.append('-DOmega_h_USE_ZLIB:BOOL=ON')
args.append('-DTPL_ZLIB_INCLUDE_DIRS:STRING={0}'.format( args.append('-DZLIB_ROOT:PATH={0}'.format(
self.spec['zlib'].prefix.include)) self.spec['zlib'].prefix))
args.append('-DTPL_ZLIB_LIBRARIES:STRING={0}'.format(
self.spec['zlib'].libs))
else: else:
args.append('-DTPL_ENABLE_ZLIB:BOOL=OFF') args.append('-DOmega_h_USE_ZLIB:BOOL=OFF')
if '+examples' in self.spec: if '+examples' in self.spec:
args.append('-DOmega_h_EXAMPLES:BOOL=ON') args.append('-DOmega_h_EXAMPLES:BOOL=ON')
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment