mirror of https://gitlab.com/ita1024/waf.git
boost: split env variable by ";" instead of space
allows to specify multiple path in INCLUDE and LIB
This commit is contained in:
parent
876d640d71
commit
b0330b0d5d
|
@ -151,7 +151,7 @@ def boost_get_includes(self, *k, **kw):
|
|||
includes = k and k[0] or kw.get('includes', None)
|
||||
if includes and self.__boost_get_version_file(includes):
|
||||
return includes
|
||||
for d in Utils.to_list(self.environ.get('INCLUDE', '')) + BOOST_INCLUDES:
|
||||
for d in self.environ.get('INCLUDE', '').split(';') + BOOST_INCLUDES:
|
||||
if self.__boost_get_version_file(d):
|
||||
return d
|
||||
if includes:
|
||||
|
@ -186,7 +186,7 @@ def __boost_get_libs_path(self, *k, **kw):
|
|||
path = self.root.find_dir(libs)
|
||||
files = path.ant_glob('*boost_*')
|
||||
if not libs or not files:
|
||||
for d in Utils.to_list(self.environ.get('LIB', [])) + BOOST_LIBS:
|
||||
for d in self.environ.get('LIB', '').split(';') + BOOST_LIBS:
|
||||
path = self.root.find_dir(d)
|
||||
if path:
|
||||
files = path.ant_glob('*boost_*')
|
||||
|
|
Loading…
Reference in New Issue