Boost logo

Boost-Build :

From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2005-08-03 22:28:20

On Wed, Aug 03, 2005 at 07:26:37PM -0500, Larry Evans wrote:
> exe test : test.cpp ;
> obj test : test.cpp ;
> How do I indicate on the bjam command line that I want the 2nd
> target instead of the first, i.e. I just want to compile test.cpp?
> Or is this not possible? If not, wouldn't it be useful to have
> this capability?

In the lastest Boost Jam from CVS, I cannot compile your testcase. I get:

error: failed to build ./test with properties because no best-matching alternative could be found

If I change your testcase to have just:

exe test : test.cpp ;

then I can do:

(1) bjam test.o (to just build the test.o object file)
(2) bjam test (to build the test executable)
(3) bjam (to build the test executable)

Option (1) was added recently to the version of Boost Jam in CVS
by Vladimir Prus.

Craig Rodrigues 

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