diff options
Diffstat (limited to 'test/scan-once.py')
| -rw-r--r-- | test/scan-once.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/scan-once.py b/test/scan-once.py index c86eaa4..044e260 100644 --- a/test/scan-once.py +++ b/test/scan-once.py @@ -275,7 +275,9 @@ for k in fromdict.keys(): # When $TARGET is None, so $TARGET.attributes would throw an # exception. f = fromdict[k] - if SCons.Util.is_String(f) and string.find(f, "TARGET") == -1: + if SCons.Util.is_String(f) and \ + string.find(f, "TARGET") == -1 and \ + string.find(f, "SOURCE") == -1: todict[k] = env.subst(f) todict["CFLAGS"] = fromdict["CPPFLAGS"] + " " + \ string.join(map(lambda x: "-I" + x, env["CPPPATH"])) + " " + \ |
