summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2020-04-02 15:52:37 +0200
committerGitHub <noreply@github.com>2020-04-02 08:52:37 -0500
commit144557e945ca71a4d7e790d471137874bf6bfb05 (patch)
treeb71e29171a1a04c22b7cbbf342be13fce6bd3524
parent1f6f395337988ad8b35d9603a5f54abf38b91e3c (diff)
downloadspack-144557e945ca71a4d7e790d471137874bf6bfb05.tar.gz
spack-144557e945ca71a4d7e790d471137874bf6bfb05.tar.bz2
spack-144557e945ca71a4d7e790d471137874bf6bfb05.tar.xz
spack-144557e945ca71a4d7e790d471137874bf6bfb05.zip
c-blosc: Add variants to disable building tests and benchmarks (#15789)
* Add variants to disable building tests and benchmarks * Flake8 * Update package.py * Update package.py * Update package.py
-rw-r--r--var/spack/repos/builtin/packages/c-blosc/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/c-blosc/package.py b/var/spack/repos/builtin/packages/c-blosc/package.py
index 8e11cb0956..7128059056 100644
--- a/var/spack/repos/builtin/packages/c-blosc/package.py
+++ b/var/spack/repos/builtin/packages/c-blosc/package.py
@@ -50,6 +50,13 @@ class CBlosc(CMakePackage):
args.append('-DPREFER_EXTERNAL_ZSTD=ON')
args.append('-DPREFER_EXTERNAL_LZ4=ON')
+ if self.run_tests:
+ args.append('-DBUILD_TESTS=ON')
+ args.append('-DBUILD_BENCHMARKS=ON')
+ else:
+ args.append('-DBUILD_TESTS=OFF')
+ args.append('-DBUILD_BENCHMARKS=OFF')
+
return args
@run_after('install')