summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Ibanez <ibaned@users.noreply.github.com>2018-10-17 06:49:00 -0600
committerSatish Balay <balay@mcs.anl.gov>2018-10-17 07:49:00 -0500
commitbc213074cd31c0c2d611b6d31de04be2bacfd6b2 (patch)
tree17566555316856f74bd938ec664245bc8a04665b
parente5e8d89ad9ad0c851e91d6b26e08e068112bf66a (diff)
downloadspack-bc213074cd31c0c2d611b6d31de04be2bacfd6b2.tar.gz
spack-bc213074cd31c0c2d611b6d31de04be2bacfd6b2.tar.bz2
spack-bc213074cd31c0c2d611b6d31de04be2bacfd6b2.tar.xz
spack-bc213074cd31c0c2d611b6d31de04be2bacfd6b2.zip
Fixes to Omega_h C++ compiler flags (#9545)
* omega-h: fix CMake CXX flag options * omega-h: turn warnings off by default
-rw-r--r--var/spack/repos/builtin/packages/omega-h/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/omega-h/package.py b/var/spack/repos/builtin/packages/omega-h/package.py
index 210b2befdf..68f1975f75 100644
--- a/var/spack/repos/builtin/packages/omega-h/package.py
+++ b/var/spack/repos/builtin/packages/omega-h/package.py
@@ -52,7 +52,7 @@ class OmegaH(CMakePackage):
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=True, 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')
@@ -61,7 +61,7 @@ class OmegaH(CMakePackage):
depends_on('zlib', when='+zlib')
def _bob_options(self):
- cmake_var_prefix = self.name.capitalize() + '_CXX_'
+ cmake_var_prefix = 'Omega_h_CXX_'
for variant in ['optimize', 'symbols', 'warnings']:
cmake_var = cmake_var_prefix + variant.upper()
if '+' + variant in self.spec: