[Scons-users] Problem with include path (CPPPATH)

delbert dev delbertum at gmail.com
Mon Jan 20 09:25:39 EST 2014


In a scons script in:

*~/home/user/samples/test001*

I have:

env.Replace(CPPPATH = ['/home/user/test/gtest-1.7.0'])
buildGtest = env.Library('/home/user/test/gtest-1.7.0/libs/libgtest',
'/home/user/test/gtest-1.7.0/src/gtest-all.cc')
Default(env.Alias('gtest', buildGtest))



Now when I run the above I would assume that ONLY:

-I/home/user/test/gtest-1.7.0

is on the include path (Since I did a env.Replace)

But I get:


g++ -o /home/user/test/gtest-1.7.0/src/gtest-all.o -c -pthread ...
...
-I/home/user/test/gtest-1.7.0* -Itest001/gtest-1.7.0 *
...

Why is :

*-Itest001/gtest-1.7.0*

also on the include path? Are there some implicit rules for what is added
to the CPPPATH?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140120/527ad0ba/attachment.html


More information about the Scons-users mailing list