[Scons-users] Include path problem

Hartmut.Brandt at dlr.de Hartmut.Brandt at dlr.de
Thu Oct 1 12:19:41 EDT 2020

Sorry. This was an unrelated pilot error on my side. My multithreading capabilities appear to be limited.


From: Scons-users <scons-users-bounces at scons.org> On Behalf Of Bill Deegan
Sent: Thursday, October 1, 2020 5:44 PM
To: SCons users mailing list <scons-users at scons.org>
Subject: Re: [Scons-users] Include path problem

By default SCons won't translate CPPPATH into absolute paths.
In your example which are your source dirs and their corresponding variant dirs?

On Thu, Oct 1, 2020 at 8:40 AM Bill Deegan <bill at baddogconsulting.com<mailto:bill at baddogconsulting.com>> wrote:
Please include some code to show us what you're doing now?

On Thu, Oct 1, 2020 at 8:35 AM <Hartmut.Brandt at dlr.de<mailto:Hartmut.Brandt at dlr.de>> wrote:

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


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?

Scons-users mailing list
Scons-users at scons.org<mailto:Scons-users at scons.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20201001/0827458c/attachment.html>

More information about the Scons-users mailing list