netlib-scalapack: make sure Spack's Lapack is used

This commit is contained in:
Denis Davydov 2016-07-16 07:37:38 +02:00
parent 069de3f008
commit 6175ce7559

View File

@ -53,6 +53,15 @@ def install(self, spec, prefix):
"-DUSE_OPTIMIZED_LAPACK_BLAS:BOOL=ON", # forces scalapack to use find_package(LAPACK)
]
# Make sure we use Spack's Lapack:
options.extend([
'-DLAPACK_FOUND=true',
'-DLAPACK_INCLUDE_DIRS=%s' % spec['lapack'].prefix.include,
'-DLAPACK_LIBRARIES=%s' % (
spec['lapack'].lapack_shared_lib if '+shared' in spec else
spec['lapack'].lapack_static_lib),
])
if '+fpic' in spec:
options.extend([
"-DCMAKE_C_FLAGS=-fPIC",