|
Boost-Build : |
Subject: Re: [Boost-build] <implicit-dependency> on generated header does not add include path
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2014-04-16 13:09:21
AMDG
On 04/16/2014 09:55 AM, Samuel Debionne wrote:
> Hello all,
> As far as I understand the documentation
> http://www.boost.org/boost-build2/doc/html/bbv2/reference/generated_headers.html
>
> the path to the build directory of a generated header should be
> automatically added to include path. It seems not to be the case.
>
It's definitely supposed to work. There is a test
case in test/implicit_dependency.py, which passes.
Can you reduce this to a small, complete project
which fails?
> I have something along those lines :
>
> app/Jamfile.v2
>
> exe app : app.c : <implicit-dependency>/gen ;
>
> where app.c has a #include <generated.h>
>
> gen/Jamfile.v2
>
> use foo-generator ;
>
> lib generated.foo ;
>
> where foo-generator generates both generated.cpp and generated.h
>
> When compiling app.c, "generated.h" is not found in the include path
> (which is a build directory).
>
> I have try to add <dependency>/gen without more success.
>
In Christ,
Steven Watanabe
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