Add include directory for scons

I have a project that has been tested from Subversion and uses Scons to build. However, a library is installed on my computer that Scons does not detect - it just says that the include file was not found. Is there a way I can direct Scons to a library location without changing the Sconscript file at all (because I don't want to deal with conflicts with every update). add a command line parameter that it detects before searching for the included file? I don’t even see all the options available because it does not respond to the -help option before it searches for included files.

+3
source share
4 answers

Well, after a few more searches, I found that there is a way to do this. gcc has a number of default directories that it is looking for (which I already knew - I just did not know that they were defined as). The easiest way to do what I need is to add directories to these environment variables. The one I needed

$CPATH

Specifies the path in which gcc searches for its included files. Installing this in the directory I needed solved my problem.

+3
source

you can install env ["CPPPATH"], but I hope it will be easier there ...

+2
source

SCons - . .

-Y REPOSITORY, --repository=REPOSITORY, --srcdir=REPOSITORY
                            Search REPOSITORY for source and target files.

SCons, -H.

0

no , scons script .

-1

Source: https://habr.com/ru/post/1710573/


All Articles