summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/lapackpp/package.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/lapackpp/package.py b/var/spack/repos/builtin/packages/lapackpp/package.py
index 72f7722479..22fe23cb66 100644
--- a/var/spack/repos/builtin/packages/lapackpp/package.py
+++ b/var/spack/repos/builtin/packages/lapackpp/package.py
@@ -45,12 +45,18 @@ class Lapackpp(CMakePackage):
def cmake_args(self):
spec = self.spec
- return [
+
+ args = [
'-DBUILD_SHARED_LIBS=%s' % ('+shared' in spec),
'-Dbuild_tests=%s' % self.run_tests,
'-DLAPACK_LIBRARIES=%s' % spec['lapack'].libs.joined(';')
]
+ if spec['blas'].name == 'cray-libsci':
+ args.append(self.define('BLA_VENDOR', 'CRAY'))
+
+ return args
+
def check(self):
# If the tester fails to build, ensure that the check() fails.
if os.path.isfile(join_path(self.build_directory, 'test', 'tester')):
@@ -58,3 +64,8 @@ class Lapackpp(CMakePackage):
make('check')
else:
raise Exception('The tester was not built!')
+
+ def flag_handler(self, name, flags):
+ if (self.spec['blas'].name == 'cray-libsci') and name == 'cxxflags':
+ flags.append('-DLAPACK_FORTRAN_ADD_')
+ return (None, None, flags)