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>
This commit is contained in:
Nathan 2020-06-09 06:01:55 -07:00 committed by GitHub
parent 2e20ee8ea2
commit f70b72edc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -512,3 +512,6 @@ def install(self, spec, prefix):
# on Darwin; correct this # on Darwin; correct this
if (sys.platform == 'darwin') and ('+shared' in spec): if (sys.platform == 'darwin') and ('+shared' in spec):
fix_darwin_install_name(prefix.lib) fix_darwin_install_name(prefix.lib)
def setup_run_environment(self, env):
env.set('BOOST_ROOT', self.prefix)