Skip to content

Commit b2b8d90

Browse files
authored
Merge pull request #34 from Tieqiong/conda_lib
add conda lib to the build with boost
2 parents 906cda4 + 186c062 commit b2b8d90

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/SConscript.configure

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ conf = Configure(env, custom_tests={
4646
'CheckBoostVersion' : CheckBoostVersion,
4747
})
4848

49+
# Add Conda include and library paths
50+
import os
51+
conda_prefix = Environment(ENV=os.environ)['ENV'].get('CONDA_PREFIX')
52+
if conda_prefix:
53+
env.Append(CPPPATH=[os.path.join(conda_prefix, 'include')])
54+
env.Append(LIBPATH=[os.path.join(conda_prefix, 'lib')])
55+
4956
# serialization of unordered_map requires boost 1.56.0
5057
boost_required = '1.56.0'
5158
if not conf.CheckBoostVersion(boost_required):

0 commit comments

Comments
 (0)