From: Eli Green (eli_at_[hidden])
Date: 2008-02-21 05:45:39
Jurko GospodnetiÄ <jurko.gospodnetic <at> docte.hr> writes:
> Hi Eli.
> Ok, now I am confused about which include folder you would like to
> add? Could you type in the exact commands you would like to get?
> If you want to get -IXXX when compiling any target in your exe you
> can do something like this and add the <include> properties to the
> target's requirements:
> exe myExe : ...your-sources-here... : <include>XXX ;
> Same can be done for a specific file if needed using the obj rule
> (just use your .ec file as a source and Boost Build will pick up that it
> needs to do .ec ==> .c ==> .o conversions) or for the whole project
> using the project rule...
In fact, it was the source folder that I wanted to add (since the .c files
aren't in the source folder when the get compiled). What I had was this:
lib name : one.ec two.c : : : <include>. ;
Because I was making the assumption that the includes in usage-requirements
would also apply to building the library itself. Now I realise that they do not
and I've changed it to this:
lib name : one.ec two.c : <include>. : : <include>. ;
And all is well now.
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