summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/recola-sm/package.py3
-rw-r--r--var/spack/repos/builtin/packages/recola/package.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/recola-sm/package.py b/var/spack/repos/builtin/packages/recola-sm/package.py
index 04113ca8af..a2620d918f 100644
--- a/var/spack/repos/builtin/packages/recola-sm/package.py
+++ b/var/spack/repos/builtin/packages/recola-sm/package.py
@@ -22,5 +22,6 @@ class RecolaSm(CMakePackage):
depends_on('collier')
def cmake_args(self):
- args = ['-Dstatic=ON']
+ args = [self.define('static', True),
+ self.define('collier_path', self.spec['collier'].prefix.lib.cmake)]
return args
diff --git a/var/spack/repos/builtin/packages/recola/package.py b/var/spack/repos/builtin/packages/recola/package.py
index 549563ed0b..379497f636 100644
--- a/var/spack/repos/builtin/packages/recola/package.py
+++ b/var/spack/repos/builtin/packages/recola/package.py
@@ -31,7 +31,9 @@ class Recola(CMakePackage):
def cmake_args(self):
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'),
]
return args