|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-03-09 04:30:43
On Wednesday 02 March 2005 19:58, jbpritts wrote:
Hi Jim,
> 3.) doit.h will be placed in /opt/include/CommonModules/foo
> 4.) doit2.h will be placed in /opt/include/CommonModules/bar/baz
>
> This is similar to how Boost include files are installed.
>
> I have failed to get 3.) and 4.) to work. bjam is dumping all the
> header files in /opt/include. I would it like it to preserve the
> relative path from the toplevel jamfile so that in my C++ files, I
> can use the following syntax: #include <CommonModules/foo/doit.h>
.....
> install install-headers : [ glob CommonModules/*/*.h ]
>
> : <location>$(include-locate)
>
> ;
With Boost.Build M10, you're out of luck. Well, you can write some bjam code
which will declare a separate 'install' target for each header directory for
install, but that's scary. In today's CVS, you should be able to do:
install install-headers : [ glob CommonModules/*/*.h ]
: <location>$(include-locate)
<preserve-path>on
;
Please let me know if this works for you.
- Volodya
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