summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-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')