[Scons-users] absolute/relative paths in CPPPATH

Dirk Bächle tshortik at gmx.de
Fri Mar 8 10:51:32 EST 2013


Hi David,

instead of fiddling with CPPPATH settings, I'd select a different (and
more SConsish) approach:

I'd have a top-level SConstruct in "/maindir", which would include the
two SConscripts in "dir1" and "dir2". This way, all paths would be
constructed relative to "/maindir" and don't differ anymore...no matter
which target you select, "dir1/mylib.so" or "dir2/myexe".

Note: It's always a good thing to let SCons see the whole source tree,
even if you build only a few selected targets from it. It might give you
a small penalty by requiring more dependency checking, but you get less
headaches regarding path issues and incremental builds...especially when
variant dirs are involved.

Just my 2 cents...

Best regards,

Dirk




More information about the Scons-users mailing list