Boost logo

Boost-Build :

Subject: Re: [Boost-build] "run" rule with same binary but different parameters
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-10-10 10:09:03


AMDG

On 10/10/2016 01:46 AM, Raffi Enficiaud wrote:
> <snip>, if I add
>
> [ exe smoke-ts-shared : smoke-ts/basic-smoke-test.cpp
> ../build//boost_unit_test_framework/<link>shared ]
> [ run smoke-ts-shared : --log_sink=smoke-ts-sink.xml --log_format=XML
> : : : bt-sh-t1 ]
>
> I run into a conflict because "basic-smoke-test.cpp" is compiled with
> two different set of options while reusing the same obj.
>
> Can I specify not reusing the same obj?
>

The easiest way is to create a single exe target:

exe smoke-ts.exe : x.cpp ../build//boost_unit_test_framework ;

and then set <link>shared and <link>static
as requirements on the test case.

In Christ,
Steven Watanabe


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