diff options
author | Nathan <35582439+yee29@users.noreply.github.com> | 2020-06-09 06:01:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 08:01:55 -0500 |
commit | f70b72edc527ddf11365c220e48e893e38cb1be3 (patch) | |
tree | e6d4b31897024e1b765f53eff6e0e556a89dbb1c /var | |
parent | 2e20ee8ea23962d25fe2d6f3d33d2111813ccf89 (diff) | |
download | spack-f70b72edc527ddf11365c220e48e893e38cb1be3.tar.gz spack-f70b72edc527ddf11365c220e48e893e38cb1be3.tar.bz2 spack-f70b72edc527ddf11365c220e48e893e38cb1be3.tar.xz spack-f70b72edc527ddf11365c220e48e893e38cb1be3.zip |
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 <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/boost/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ class Boost(Package): # 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) |