diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/omega-h/package.py | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/var/spack/repos/builtin/packages/omega-h/package.py b/var/spack/repos/builtin/packages/omega-h/package.py index 4c0b4c0299..6cf3db52a0 100644 --- a/var/spack/repos/builtin/packages/omega-h/package.py +++ b/var/spack/repos/builtin/packages/omega-h/package.py @@ -47,16 +47,14 @@ class OmegaH(CMakePackage): variant('shared', default=True, description='Build shared libraries') variant('mpi', default=True, description='Activates MPI 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('gmodel', default=True, description='Gmsh model generation library') variant('throw', default=False, description='Errors throw exceptions instead of abort') variant('examples', default=False, description='Compile examples') variant('optimize', default=True, description='Compile C++ with optimization') variant('symbols', default=True, description='Compile C++ with debug symbols') variant('warnings', default=False, description='Compile C++ with warnings') - depends_on('gmodel', when='+gmodel') depends_on('gmsh', when='+examples', type='build') depends_on('mpi', when='+mpi') depends_on('trilinos +kokkos +teuchos', when='+trilinos') @@ -88,16 +86,12 @@ class OmegaH(CMakePackage): args.append('-DOmega_h_USE_MPI:BOOL=OFF') if '+trilinos' in self.spec: 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: - args.append('-DTPL_ENABLE_ZLIB:BOOL=ON') - args.append('-DTPL_ZLIB_INCLUDE_DIRS:STRING={0}'.format( - self.spec['zlib'].prefix.include)) - args.append('-DTPL_ZLIB_LIBRARIES:STRING={0}'.format( - self.spec['zlib'].libs)) + args.append('-DOmega_h_USE_ZLIB:BOOL=ON') + args.append('-DZLIB_ROOT:PATH={0}'.format( + self.spec['zlib'].prefix)) else: - args.append('-DTPL_ENABLE_ZLIB:BOOL=OFF') + args.append('-DOmega_h_USE_ZLIB:BOOL=OFF') if '+examples' in self.spec: args.append('-DOmega_h_EXAMPLES:BOOL=ON') else: |