kallisto: simplify (#44862)
This commit is contained in:
parent
ded3fa50a3
commit
867a813328
@ -56,19 +56,9 @@ def autoreconf(self):
|
|||||||
# configure script.
|
# configure script.
|
||||||
# See https://github.com/spack/spack/issues/15274 and
|
# See https://github.com/spack/spack/issues/15274 and
|
||||||
# https://github.com/pachterlab/kallisto/issues/253
|
# https://github.com/pachterlab/kallisto/issues/253
|
||||||
@property
|
def cmake_args(self):
|
||||||
def std_cmake_args(self):
|
return [
|
||||||
"""Call the original std_cmake_args and then filter the verbose
|
self.define("CMAKE_VERBOSE_MAKEFILE", False),
|
||||||
setting.
|
self.define_from_variant("USE_HDF5", "hdf5"),
|
||||||
"""
|
self.define_from_variant("USE_BAM", "bam"),
|
||||||
a = super().std_cmake_args
|
]
|
||||||
if self.spec.satisfies("@0.44.0:"):
|
|
||||||
args = [i for i in a if i != "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"]
|
|
||||||
if self.spec.satisfies("@0.46.2:"):
|
|
||||||
args.append(self.define_from_variant("USE_HDF5", "hdf5"))
|
|
||||||
if self.spec.satisifes("@0.50.1:"):
|
|
||||||
args.append(self.define_from_variant("USE_BAM", "bam"))
|
|
||||||
else:
|
|
||||||
args = a
|
|
||||||
|
|
||||||
return args
|
|
||||||
|
Loading…
Reference in New Issue
Block a user