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
This commit is contained in:
iarspider 2020-04-02 15:52:37 +02:00 committed by GitHub
parent 1f6f395337
commit 144557e945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,13 @@ def cmake_args(self):
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')