Boost logo

Boost-Build :

Subject: Re: [Boost-build] Build only exe using run rule
From: Nogradi, Chris (Chris.Nogradi_at_[hidden])
Date: 2011-02-16 14:44:04


Thanks Steve. However, I am still struggling with how to do this from the command line. If I am at the same level as the Jamroot.jam and I want to build the exe for a project a few dirs below, I tried this to no avail:

$ Tools/boost-build/bin/bjam.exe debug -l 120 -j8 Verification/Tests/MOD_TEST_mytest.exe
notice: could not find main target Verification/Tests/MOD_TEST_mytest.exe
notice: assuming it is a name of file to create.
don't know how to make <e>Verification/Tests/MOD_TEST_mytest.exe
...found 1 target...
...can't find 1 target...

If I cd down to that dir and do this I get a similar error:

$ ../../../Tools/boost-build/bin/bjam.exe debug -l 120 -j8 MOD_TEST_mytest.exe
notice: could not find main target MOD_TEST_mytest.exe
notice: assuming it is a name of file to create.
don't know how to make <e>MOD_TEST_mytest.exe
...found 1 target...
...can't find 1 target...

My jamfile.jam is:

run MOD_TEST_mytest.c ;

Note that I am overriding the run rule in my Jamroot with:

rule run( ... )
{
   testing.run( ... ) ;
}

Thank,

Chris

-----Original Message-----
From: boost-build-bounces_at_[hidden] [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Steven Watanabe
Sent: Wednesday, February 16, 2011 1:11 PM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] Build only exe using run rule

AMDG

On 2/16/2011 9:43 AM, Nogradi, Chris wrote:
> Is there a way from the command line to specify that only the exe be built (no test run) when using the testing.run rule?
>

Only on Windows. If you have

run test.cpp ;

You can use bjam test.exe. This works because
you can specify building a specific file on the
command line. Unfortunately, the name of the
executable is the same as the name of the main
target, except on Windows.

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.

Thank you for your cooperation.


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