Fix issue with empty CPPPATH when processing a library

This commit is contained in:
Ivan Kravets
2017-01-23 14:24:34 +02:00
parent 8314e05a71
commit 5d8a17ba6d

View File

@ -571,7 +571,7 @@ class PlatformIOLibBuilder(LibBuilderBase):
inc_dirs.append(join(self.path, "utility"))
for path in self.env.get("CPPPATH", []):
if path not in self.envorigin['CPPPATH']:
if path not in self.envorigin.get("CPPPATH", []):
inc_dirs.append(self.env.subst(path))
return inc_dirs