Is there a way to limit the header files that Boost.Build recursively scans for #include directives in a particular directory or set of directories? That is, I would like it to recursively view header files only in my project. I know that external dependencies will not change (and, being Boost and Qt, they are quite large). As a result, I get about 50,000 goals in the dependency tree, which take time to process (which leads to a 1-2-minute build time, even if the files have not actually changed).
The only solution I have found so far is to use the INCLUDE environment variable (I use MSVC) - this means that Boost.Build does not need to be informed about include paths (I use this function) and therefore does not scan them. It seems a bit hacked.
I feel that I am missing something obvious, because I could not find other people experiencing similar problems, although I came across this almost immediately. The closest I came here .
Judging by the debugging output (bjam -d 3), it also looks at most header files more than once ... I donβt know if this means that they are added as dependencies more than once, but, of course, the cost of downloading the file and scanning it all content should be indicated?
If I could say that he should not check a specific directory or set of directories in which I can guarantee that the header files will not change, that would be ideal.
source share