From de52c175de1cd66d75e246959e20a2b8bff1963f Mon Sep 17 00:00:00 2001 From: Jon Rood Date: Wed, 21 Mar 2018 15:52:08 -0600 Subject: [PATCH] Using self.prefix in Trilinos to avoid global name prefix undefined bug (#7478) * Using self.prefix in Trilinos to avoid global name prefix undefined bug during module refreshing. * Fixing flake8 errors. --- var/spack/repos/builtin/packages/trilinos/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py index 65b91b2831..8defeb24a1 100644 --- a/var/spack/repos/builtin/packages/trilinos/package.py +++ b/var/spack/repos/builtin/packages/trilinos/package.py @@ -610,7 +610,8 @@ def cmake_args(self): # use @rpath on Sierra due to limit of dynamic loader options.append('-DCMAKE_MACOSX_RPATH=ON') else: - options.append('-DCMAKE_INSTALL_NAME_DIR:PATH=%s' % prefix.lib) + options.append('-DCMAKE_INSTALL_NAME_DIR:PATH=%s' % + self.prefix.lib) if spec.satisfies('%intel') and spec.satisfies('@12.6.2'): # Panzer uses some std:chrono that is not recognized by Intel