Boost logo

Boost-Build :

From: Edward Diener (eldiener_at_[hidden])
Date: 2020-10-31 20:30:55


On 10/29/2020 3:29 PM, Uri Moszkowicz via Boost-build wrote:
> Hi,
> I have executables with compiler specific features work, like below.
>
>   exe myExe : src1.cc src2.cc : <toolset>gcc-6.0.0:<define>DEFINE1
>   exe myExe : src1.cc src2.cc : <toolset>gcc-10.0.0:<define>DEFINE2
>
> I'm trying to do the same with a make target but it's not working.
>
>   make myMake : myExe : @user-config.link_install :
>     <toolset>gcc-6.0.0:<define>DEFINE1
>     <toolset>gcc-10.0.0:<define>DEFINE2
>
> With these lines, I get "error: default build must be identical in all
> alternatives".
>
> Why doesn't this work for make like it does for exe?

Maybe:

make myMake : myExe : @user-config.link_install :
       <toolset>gcc-6.0.0:<define>DEFINE1 ;

make myMake : myExe : @user-config.link_install :
       <toolset>gcc-10.0.0:<define>DEFINE2 ;


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