Magma: fix prefix (#12220)

`prefix` is not available in `cmake_args` method, use `self.prefix`.
Fixes #12214.
This commit is contained in:
Rémi Lacroix 2019-07-31 23:43:47 +02:00 committed by Greg Becker
parent 8ec9ebc92f
commit 5c970613b6

View File

@ -46,8 +46,8 @@ def cmake_args(self):
options = []
options.extend([
'-DCMAKE_INSTALL_PREFIX=%s' % prefix,
'-DCMAKE_INSTALL_NAME_DIR:PATH=%s/lib' % prefix,
'-DCMAKE_INSTALL_PREFIX=%s' % self.prefix,
'-DCMAKE_INSTALL_NAME_DIR:PATH=%s/lib' % self.prefix,
'-DBLAS_LIBRARIES=%s' % spec['blas'].libs.joined(';'),
# As of MAGMA v2.3.0, CMakeLists.txt does not use the variable
# BLAS_LIBRARIES, but only LAPACK_LIBRARIES, so we need to