diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cppgsl/package.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/cppgsl/package.py b/var/spack/repos/builtin/packages/cppgsl/package.py index fe5b2c4e4d..8a3b0f3e4f 100644 --- a/var/spack/repos/builtin/packages/cppgsl/package.py +++ b/var/spack/repos/builtin/packages/cppgsl/package.py @@ -28,7 +28,7 @@ class Cppgsl(CMakePackage): depends_on('cmake@3.1.3:', type='build') def cmake_args(self): - args = [ - '-DGSL_CXX_STANDARD={0}'.format(self.spec.variants['cxxstd'].value) + return [ + self.define_from_variant('GSL_CXX_STANDARD', 'cxxstd'), + self.define('GSL_TEST', self.run_tests) ] - return args |