Minor correction to install mumps+mpi
This commit is contained in:
@@ -9,23 +9,30 @@ class NetlibScalapack(Package):
|
||||
version('2.0.2', '2f75e600a2ba155ed9ce974a1c4b536f')
|
||||
version('2.0.1', '17b8cde589ea0423afe1ec43e7499161')
|
||||
version('2.0.0', '9e76ae7b291be27faaad47cfc256cbfe')
|
||||
|
||||
# versions before 2.0.0 are not using cmake and requires blacs as
|
||||
# a separated package
|
||||
|
||||
variant('shared', default=True, description='Build the shared library version')
|
||||
|
||||
variant('fpic', default=False, description="Build with -fpic compiler option")
|
||||
|
||||
provides('scalapack')
|
||||
|
||||
depends_on('mpi')
|
||||
depends_on('blas')
|
||||
depends_on('lapack')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
options = [
|
||||
"-DBUILD_SHARED_LIBS:BOOL=%s" % 'ON' if '+shared' in spec else 'OFF',
|
||||
"-DBUILD_STATIC_LIBS:BOOL=%s" % 'OFF' if '+shared' in spec else 'ON',
|
||||
"-DCMAKE_C_FLAGS=-fPIC",
|
||||
"-DCMAKE_Fortran_FLAGS=-fPIC",
|
||||
"-DUSE_OPTIMIZED_LAPACK_BLAS:BOOL=ON", # forces scalapack to use find_package(LAPACK)
|
||||
]
|
||||
|
||||
if '+fpic' in spec:
|
||||
options.extend([
|
||||
"-DCMAKE_C_FLAGS=-fPIC",
|
||||
"-DCMAKE_Fortran_FLAGS=-fPIC"
|
||||
])
|
||||
|
||||
options.extend(std_cmake_args)
|
||||
|
||||
with working_dir('spack-build', create=True):
|
||||
|
Reference in New Issue
Block a user