Include path problem

<[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
Hi,

I fail to understand the handling of CPPPATH with regard to variant directories. I have a complex project with several libraries in the source:

SConstruct
a/b/c/libabc
a/b/c/libabc/SConscript
d/libd
d/libd/SConscript

Now I need to include header files from libabc when compiling libd using "c/libabc/x.h". And I'm using variant_dir.

I cannot get libd's SConscript to put me a corresponding -I<absolute-source-path>/a/b into the compiler command line. Whatever I try I just get -Ia/b. That does not work, of course since the compiler is executed in the build directory.

For the library itself this works just fine: I export the library target from libd/SConscript, import it in libabc/SConscript and give it to the shared library builder. Scons manages the path. Couldn't that be as simple for the include path?

Thanks,
harti

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.