Scons VariantDir() duplicated CPPPATH and LIBPATH when compiling?
问题 Here's my simple case. I got a source file structure as following: . ├── SConstruct └── src ├── SConscript ├── staticLib │ ├── classInStaticLib.cpp │ ├── classInStaticLib.h │ └── SConscript └── test.cpp SConstruct: VariantDir('build', 'src', duplicate=0) SConscript('build/SConscript') src/SConscript: import os lib = 'staticLib' SConscript(os.path.join(lib, 'SConscript')) Program( 'test', 'test.cpp', CPPPATH = lib, LIBS = lib, LIBPATH = lib ) src/staticLib/SConscript: Library('staticLib',