recola: fix compilation (#26634)

* recola: fix compilation

* Update var/spack/repos/builtin/packages/recola-sm/package.py

Co-authored-by: Seth R. Johnson <johnsonsr@ornl.gov>

* flake8

* fixes

* fix typo

* fix typo

Co-authored-by: Seth R. Johnson <johnsonsr@ornl.gov>
This commit is contained in:
Valentin Volkl 2021-10-27 15:19:35 +02:00 committed by GitHub
parent 4f124bc9e7
commit 9fa20b8a39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -22,5 +22,6 @@ class RecolaSm(CMakePackage):
depends_on('collier') depends_on('collier')
def cmake_args(self): def cmake_args(self):
args = ['-Dstatic=ON'] args = [self.define('static', True),
self.define('collier_path', self.spec['collier'].prefix.lib.cmake)]
return args return args

View File

@ -31,7 +31,9 @@ class Recola(CMakePackage):
def cmake_args(self): def cmake_args(self):
args = [ args = [
'-DCMAKE_VERBOSE_MAKEFILE=ON', self.define('static', True),
self.define('collier_path', self.spec['collier'].prefix.lib.cmake),
self.define('modelfile_path', self.spec['recola-sm'].prefix.lib.cmake),
self.define_from_variant("with_python3", 'python'), self.define_from_variant("with_python3", 'python'),
] ]
return args return args