summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJoseph Wang <joequant@gmail.com>2021-10-13 21:36:45 +0800
committerGitHub <noreply@github.com>2021-10-13 09:36:45 -0400
commit252784ccf5a381f5a611ca74cc486f74218b9ce6 (patch)
tree1619380e016e9c94fd07f3a20dc06b8cb1994d41 /var
parentb771c4ea01a0ce19511dcc30d07fec5e0494146a (diff)
downloadspack-252784ccf5a381f5a611ca74cc486f74218b9ce6.tar.gz
spack-252784ccf5a381f5a611ca74cc486f74218b9ce6.tar.bz2
spack-252784ccf5a381f5a611ca74cc486f74218b9ce6.tar.xz
spack-252784ccf5a381f5a611ca74cc486f74218b9ce6.zip
cppgsl: disable tests on gcc11 (#26593)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cppgsl/package.py6
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