[Scons-users] Scons VariantDir() duplicated CPPPATH and LIBPATH when compiling?

Pawel Tomulik ptomulik at meil.pw.edu.pl
Thu Apr 17 04:32:05 EDT 2014


W dniu 16.04.2014 00:25, Jason Fritz pisze:

> Hi SCons folks,

>

> Today I encountered a problem/peculiarity of SCons where it is

> duplicating entries in CPPPATH and LIBPATH for both the src directory as

> well as variant (build) directory when using VariantDir(), even though

> I'm using the duplicate=0 option.

>

> For example: -Ibuild/staticLib -Isrc/staticLib (I only want -Isrc/staticLib)

>

> This Stack Overflow question perfectly presents an example of this

> happening, so I won't try to repeat the details here:

> http://stackoverflow.com/questions/21217008/scons-variantdir-duplicated-cpppath-and-libpath-when-compiling

>

> Is this a bug? Intended behavior? It happens in both SCons 2.0.1 and

> 2.3.1.

>

> Thank you!

> Jason

>

>


It's pretty normal, and intended. You may have source files/headers
generated (with SWIG for example or by SConf) and they go to variant
dir, others are taken directly from source dir, so -Ibuild/staticLib
-Isrc/staticLib is correct in my opinion.


Regards!
--
Pawel Tomulik



More information about the Scons-users mailing list