diff options
author | Jon Rood <jon.rood@nrel.gov> | 2018-03-21 15:52:08 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-03-21 16:52:08 -0500 |
commit | de52c175de1cd66d75e246959e20a2b8bff1963f (patch) | |
tree | a87578e2634225d705fc2786a04210bcf15a7b34 | |
parent | f59a447f719ce7d81e5785187cec676f1babd50b (diff) | |
download | spack-de52c175de1cd66d75e246959e20a2b8bff1963f.tar.gz spack-de52c175de1cd66d75e246959e20a2b8bff1963f.tar.bz2 spack-de52c175de1cd66d75e246959e20a2b8bff1963f.tar.xz spack-de52c175de1cd66d75e246959e20a2b8bff1963f.zip |
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.
-rw-r--r-- | var/spack/repos/builtin/packages/trilinos/package.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ class Trilinos(CMakePackage): # 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 |