Skip to content
Snippets Groups Projects
Unverified Commit 5cfd862f authored by Adam J. Stewart's avatar Adam J. Stewart Committed by GitHub
Browse files

suite-sparse: fix installation for v5.X (#15326)

fixes #15184

GraphBLAS depends on m4 according to CMake error message
Do not use INSTALL= when compiling the library
parent 32a0f327
Branches
Tags
No related merge requests found
...@@ -34,6 +34,7 @@ class SuiteSparse(Package): ...@@ -34,6 +34,7 @@ class SuiteSparse(Package):
depends_on('blas') depends_on('blas')
depends_on('lapack') depends_on('lapack')
depends_on('m4', type='build', when='@5.0.0:')
depends_on('cmake', when='@5.2.0:', type='build') depends_on('cmake', when='@5.2.0:', type='build')
depends_on('metis@5.1.0', when='@4.5.1:') depends_on('metis@5.1.0', when='@4.5.1:')
...@@ -64,7 +65,6 @@ def install(self, spec, prefix): ...@@ -64,7 +65,6 @@ def install(self, spec, prefix):
pic_flag = self.compiler.pic_flag if '+pic' in spec else '' pic_flag = self.compiler.pic_flag if '+pic' in spec else ''
make_args = [ make_args = [
'INSTALL=%s' % prefix,
# By default, the Makefile uses the Intel compilers if # By default, the Makefile uses the Intel compilers if
# they are found. The AUTOCC flag disables this behavior, # they are found. The AUTOCC flag disables this behavior,
# forcing it to use Spack's compiler wrappers. # forcing it to use Spack's compiler wrappers.
...@@ -134,6 +134,7 @@ def install(self, spec, prefix): ...@@ -134,6 +134,7 @@ def install(self, spec, prefix):
if '@5.4.0:' in self.spec: if '@5.4.0:' in self.spec:
make('default', *make_args) make('default', *make_args)
make_args.append('INSTALL=%s' % prefix)
make('install', *make_args) make('install', *make_args)
@property @property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment