xsbench: fix build of v19 (#15715)
* xsbench: fix build of v19 * Flake8
This commit is contained in:
		 Christoph Junghans
					Christoph Junghans
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							27e4a4750d
						
					
				
				
					commit
					0b1c0bdd6e
				
			| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user