scons: normalize paths to make sure that trailing slashes are striped and the lib/include directories are removed with dirname
This commit is contained in:
parent
05d37a282f
commit
317830784e
1 changed files with 6 additions and 4 deletions
|
@ -556,8 +556,10 @@ def FindBoost(context, prefixes, thread_flag):
|
|||
else:
|
||||
search_lib = 'libboost_filesystem'
|
||||
|
||||
prefixes.insert(0,os.path.dirname(env['BOOST_INCLUDES']))
|
||||
prefixes.insert(0,os.path.dirname(env['BOOST_LIBS']))
|
||||
# note: must call normpath to strip trailing slash otherwise dirname
|
||||
# does not remove 'lib' and 'include'
|
||||
prefixes.insert(0,os.path.dirname(os.path.normpath(env['BOOST_INCLUDES'])))
|
||||
prefixes.insert(0,os.path.dirname(os.path.normpath(env['BOOST_LIBS'])))
|
||||
for searchDir in prefixes:
|
||||
libItems = glob(os.path.join(searchDir, LIBDIR_SCHEMA, '%s*.*' % search_lib))
|
||||
if not libItems:
|
||||
|
|
Loading…
Reference in a new issue