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

Jason Fritz jasonfritzpublic at gmail.com
Thu Apr 17 17:15:27 EDT 2014


Thanks, Pawel!


On Thu, Apr 17, 2014 at 2:32 AM, Pawel Tomulik <ptomulik at meil.pw.edu.pl>wrote:


> 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

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140417/c120f17b/attachment.html


More information about the Scons-users mailing list