vdt: add missing python dependency (#31795)
* vdt: add missing python dependency * vdt: fix dependency and add explicit exe path
This commit is contained in:
parent
9d67d1e034
commit
e35b69ca57
1 changed files with 8 additions and 4 deletions
|
@ -24,6 +24,8 @@ class Vdt(CMakePackage):
|
|||
variant('preload', default=False,
|
||||
description='Create in the library the symbols to preload the library')
|
||||
|
||||
depends_on('python', type='build')
|
||||
|
||||
@property
|
||||
def build_directory(self):
|
||||
d = join_path(self.stage.path, 'spack-build')
|
||||
|
@ -40,12 +42,14 @@ def cmake_args(self):
|
|||
elif spec.satisfies('target=ppc64le:'):
|
||||
disable_features.add('fma')
|
||||
|
||||
options = []
|
||||
args = [
|
||||
self.define_from_variant('PRELOAD'),
|
||||
self.define('PYTHON_EXECUTABLE', spec['python'].command),
|
||||
]
|
||||
for f in ['sse', 'avx', 'avx2', 'fma', 'neon']:
|
||||
options.append(self.define(
|
||||
args.append(self.define(
|
||||
f.upper(),
|
||||
f not in disable_features and f in self.spec.target
|
||||
))
|
||||
|
||||
options.append(self.define_from_variant('PRELOAD'))
|
||||
return options
|
||||
return args
|
||||
|
|
Loading…
Reference in a new issue