diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/openfast/package.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/openfast/package.py b/var/spack/repos/builtin/packages/openfast/package.py index cf37e24a81..687ca8c3b7 100644 --- a/var/spack/repos/builtin/packages/openfast/package.py +++ b/var/spack/repos/builtin/packages/openfast/package.py @@ -56,7 +56,7 @@ class Openfast(CMakePackage): # Additional dependencies when compiling C++ library depends_on('mpi', when='+cxx') depends_on('yaml-cpp', when='+cxx') - depends_on('hdf5+mpi+cxx', when='+cxx') + depends_on('hdf5+mpi+cxx+hl', when='+cxx') depends_on('zlib', when='+cxx') depends_on('libxml2', when='+cxx') @@ -79,6 +79,13 @@ class Openfast(CMakePackage): 'ON' if '+cxx' in spec else 'OFF'), ]) + # Make sure we use Spack's blas/lapack: + blas_libs = spec['lapack'].libs + spec['blas'].libs + options.extend([ + '-DBLAS_LIBRARIES=%s' % blas_libs.joined(';'), + '-DLAPACK_LIBRARIES=%s' % blas_libs.joined(';') + ]) + if '+cxx' in spec: options.extend([ '-DMPI_CXX_COMPILER:PATH=%s' % spec['mpi'].mpicxx, |