On Thursday 29 June 2006 19:10, Phillip Seaver wrote:
> Johan Nilsson wrote:
> > Phillip Seaver wrote:
> >> As a side note, I also renamed
project-root.jam -- IIRC, it was
> >> interfering with using boost below my
Jamroot.jam.
> >
> > You don't happen to remember in what way ... now?
> >
> > // Johan
>
> Well, I just changed the name back and my project
failed to build. I
> added a path constant in my Jamroot.jam that the boost
jamfile.v2
> doesn't see, for whatever reason. I was trying to
build a separate
> project that uses boost, so it wasn't that I was in
the boost directory
> and it didn't see my Jamroot.jam.
>
> I hadn't thought of trying to modify ARGV to change
the build
> directory. Sneaky, but in a good way. :->
>
> To the developers: would it make sense to have a
"default-build-dir"
> that is used if the parent doesn't set it? That way,
people could build
> boost outside the source tree without having to
remember to add
> "--build-dir" to their bjam calls (or use a
script/alias/batch
> file/whatever).
The problem is that Boost has it's own project-root.jam,
and so does not
inherit any properties of any projects. In fact, it inherits
properties --
but from user-config.jam, not any your files.
There's really no mechanism to apply any properties to a
project that has
Jamroot file (or in case of older projects,
project-root.jam).
I tend to think that overriding --build-dir inside
boost-build.jam for your
project is the most straight-forward solution.
- Volodya
--
Vladimir Prus
http://vladimir_pru
s.blogspot.com
Boost.Build V2: http://boost.org/boost-
build2
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
a>
|