Reversed order for CPPATH

This commit is contained in:
Ivan Kravets
2015-05-25 13:18:52 +03:00
parent 146d430695
commit a1bb98fd5c

View File

@ -288,16 +288,14 @@ def BuildDependentLibraries(env, src_dir): # pylint: disable=R0914
# end internal prototypes # end internal prototypes
deplibs = _get_dep_libs(src_dir) deplibs = _get_dep_libs(src_dir)
for l, ld in deplibs:
env.Prepend( env.Prepend(
CPPPATH=[join("$BUILD_DIR", l) for (l, _) in deplibs] CPPPATH=[join("$BUILD_DIR", l)]
) )
# add automatically "utility" dir from the lib (Arduino issue) # add automatically "utility" dir from the lib (Arduino issue)
if isdir(join(ld, "utility")):
env.Prepend( env.Prepend(
CPPPATH=[ CPPPATH=[join("$BUILD_DIR", l, "utility")]
join("$BUILD_DIR", l, "utility") for (l, ld) in deplibs
if isdir(join(ld, "utility"))
]
) )
libs = [] libs = []