|
Boost-Build : |
Subject: [Boost-build] Lib selection with multiple conditions
From: Sherwood Hu (sherwood_at_[hidden])
Date: 2009-08-31 11:31:44
I want my program to link to different lib file under different
conditions. In my jamfile,
lib ace_lib_static : : <name>libboost_ace-vc80-mt-sgd-5_6_8.lib
<variant>debug <toolset>msvc <address-model>32
<search>../lib/ACE_wrappers
;
lib ace_lib_static : : <name>libboost_ace-vc80-mt-s-5_6_8.lib
<variant>release <toolset>msvc <address-model>32
<search>../lib/ACE_wrappers
;
lib ace_lib_static : : <name>libboost_ace-vc80-mt-sgd.lib <variant>debug
<toolset>msvc <address-model>64
<search>../lib/ACE_wrappers/lib64
;
lib ace_lib_static : : <name>libboost_ace-vc80-mt-s.lib <variant>release
<toolset>msvc <address-model>64
<search>../lib/ACE_wrappers/lib64
;
use-project /lib/ace : .//ace_lib_static ;
However, when I compile under bjam address-model=64 under MSVC 8.0, the
32-bit lib file is selected, not the 64-bit one.
Is there anything wrong in the jam source?
Thanks in advance,
Sherwood
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