|
Boost-Build : |
From: Larry Evans (cppljevans_at_[hidden])
Date: 2007-09-05 15:09:39
Following the instructions similar to those for the glib example, my
project-root.jam contains:
rule glib ( name )
{
obj $(name)_obj : $(name).cpp ;
}
and my Jamfile.v2 contains:
project
: requirements
<include>.
: default-build debug
<include>.
;
glib test
;
However, I got:
bjam --v2 test
gcc.jam:init-link-flags:toolset,condition= gcc , <toolset>gcc-4.1
gcc.jam:init-link-flags:toolset,condition= gcc , <toolset>gcc-4.3_v
notice: could not find main target test
notice: assuming it's a name of file to create
rule cpreproc-run: includes=
don't know how to make <e>test
...found 1 target...
...can't find 1 target...
(Ignore the gcc.jam: lines, they're produced by some debug echos.)
Since `glib test ;` is essentially the same as `glib codegen ;` from
the example, I'd expected `bjam --v2 test` to invoke glib
rule from project-root.jam.
Could you explain why this doesn't work as I expected?
TIA.
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