Skip to content
Snippets Groups Projects
Unverified Commit 0b1c0bdd authored by Christoph Junghans's avatar Christoph Junghans Committed by GitHub
Browse files

xsbench: fix build of v19 (#15715)

* xsbench: fix build of v19

* Flake8
parent 27e4a475
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,12 @@ class Xsbench(MakefilePackage):
depends_on('mpi', when='+mpi')
build_directory = 'src'
@property
def build_directory(self):
if self.spec.satisfies('@:18'):
return 'src'
else:
return 'openmp-threading'
@property
def build_targets(self):
......@@ -50,4 +55,5 @@ def build_targets(self):
def install(self, spec, prefix):
mkdir(prefix.bin)
install('src/XSBench', prefix.bin)
with working_dir(self.build_directory):
install('XSBench', prefix.bin)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment