From f70b72edc527ddf11365c220e48e893e38cb1be3 Mon Sep 17 00:00:00 2001 From: Nathan <35582439+yee29@users.noreply.github.com> Date: Tue, 9 Jun 2020 06:01:55 -0700 Subject: [PATCH] Set the BOOST_ROOT environment variable when library is loaded (#16818) * Adding BOOST_ROOT env variable * Update var/spack/repos/builtin/packages/boost/package.py Co-authored-by: Adam J. Stewart --- var/spack/repos/builtin/packages/boost/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py index bcdec30ae9..1e5bd00c2b 100644 --- a/var/spack/repos/builtin/packages/boost/package.py +++ b/var/spack/repos/builtin/packages/boost/package.py @@ -512,3 +512,6 @@ def install(self, spec, prefix): # on Darwin; correct this if (sys.platform == 'darwin') and ('+shared' in spec): fix_darwin_install_name(prefix.lib) + + def setup_run_environment(self, env): + env.set('BOOST_ROOT', self.prefix)