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