|
Boost-Build : |
From: Jurko GospodnetiÄ (jurko.gospodnetic_at_[hidden])
Date: 2008-07-09 21:24:48
Hi Andrej.
> Recently I got in trouble on Windows when I compiled
> my own project with variant=debug and linked against
> boost_filesystem build with variant=release. Now I
> want to force my build system to link with the right
> boost library because I want to support both variants.
> What is "the right way" to do this? Should I have one
> lib rule in my site-config.jam for each variant and
> add some trickery in my Jamfiles? Or is there a better
> way to do this?
Simple add alternatives for your lib targets based on the variant
property. For example:
lib eaylib_static_rtlStatic : :
<name>$(SSL_ROOT)/lib/VC/static/libeay32MTd <variant>debug ;
lib eaylib_static_rtlStatic : :
<name>$(SSL_ROOT)/lib/VC/static/libeay32MT <variant>release ;
explicit eaylib_static_rtlStatic ;
Hope this helps.
Best regards,
Jurko GospodnetiÄ
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