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:
parent
2e20ee8ea2
commit
f70b72edc5
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue