Boost logo

Boost-Build :

From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2006-03-09 23:41:23


I understand how the following works:

lib lib2 : : <file>lib2_release.lib <variant>release ;
lib lib2 : : <file>lib2_debug.lib <variant>debug ;

But how do you make the build system select different targets based on more
than one parameter? I tried the following, which didn't work:

lib lib2 : : <file>lib2_vc71_release.lib <variant>release <toolset>msvc-7.1
;
lib lib2 : : <file>lib2_vc71_debug.lib <variant>debug <toolset>msvc-7.1 ;

When I try to build and request (for example) toolset=msvc-7.1 and
variant=release on the command line, Boost-Build fails with an error message
which says that it couldn't find a best match for the target to use.

So how is it done?

Thanks,
Emil


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