Boost logo

Boost-Build :

Subject: [Boost-build] Files with same name in different directories
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-11-13 03:33:43


I've just checked in this patch:

that purports to make:

        exe a : dir1/a.cpp dir2/a.cpp ;

work, but including "dir1" and "dir2" in the path for a.o. This is:

The original patch was committed by myself, but broke Boost tests, and
I've reverted it. Besides, it was broken in other ways. Jürgen then
fixed it and posted here:

What I've checked in is a minor revision of that patch.

Jürgen, can you check that those "minor" revision did not broke anything for you?
Also, in

you say:

        3) The usage of determine-target-name in other modules (I tried qt4.jam)
        in its current state is not a good idea because the include-path to the
        generated file is not adjusted. This should somehow be documented. I
        think that having more than one "a.ui" file in one Jamfile is asking
        for trouble anyhow :-))

Can you explain what you mean.

At the time the patch was posted, Jurko made some comments, the most important

 * Could it be made to work the same even when source paths are given
as absolute names but still point to inside the source-location tree?
Currently it treats such paths as it did before - just placing them in
the top-level build folder.

   * Related to the previous comment, if you have source-location /A/B/C
and specify a source file as ../C/X/x.cpp, could it correctly create the
obj target in X/x.obj instead of just x.obj?

These points probably need addressing, but I want the dust from the base
patch to settle first.

- Volodya

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at