From bc213074cd31c0c2d611b6d31de04be2bacfd6b2 Mon Sep 17 00:00:00 2001 From: Dan Ibanez Date: Wed, 17 Oct 2018 06:49:00 -0600 Subject: [PATCH] Fixes to Omega_h C++ compiler flags (#9545) * omega-h: fix CMake CXX flag options * omega-h: turn warnings off by default --- var/spack/repos/builtin/packages/omega-h/package.py | 4 ++-- 1 file 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: