Boost logo

Boost-Build :

Subject: [Boost-build] Precompiled Header Include Path
From: Andrew Sayman (andrew.sayman_at_[hidden])
Date: 2008-12-08 20:24:14


I'm recently moving to using Boost.Build for a large C++ project. I
have previously used precompiled headers, but the layout used now
seems incompatible.

I have C++ files with header lines like this:
#include "project_path/prec.h"

In MSVC and GCC using other tools, I could properly set the include
path so this would be found. Boost.Build seems unable to do this for
GCC, so the PCH is never found.

In essence, when I do:

cpp-pch prec : ../project_path/prec.h ;
exe project_path : prec [ glob-tree *.cpp ] ;

My command line comes out with:
-I"project_path/bin/gcc-4.1.2/debug/../wx_src"
when I need something like
-I"project_path/bin/gcc-4.1.2/debug"

or a better way to actually embed the full include specification that
my program is using

-- 
Andrew Sayman
Jabber: gnu_lorien_at_[hidden]

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk